Device solutions
End to end solutions
Product accelerators
Get Started
APIs
IoT Devices
Trash can APIs allow you to retrieve, restore, or permanently delete files and folders that are in deleted state.
Use this code sample to permanently remove files and folders that are marked as deleted.
Code Sample
thingspace.cloud.emptyTrash({ virtualfolder: "VZMOBILE", success: function(resp) { }, });
This code sample results in the listing of all files or folders that are marked as deleted.
thingspace.cloud.getTrash({ virtualfolder: "VZMOBILE", success: function(resp) { var files = resp.body.trashCan.file; var folders = resp.body.trashCan.folder } });
Use this code sample to restore files or folders from trash.
var fileToRestore = "/path/to/file.jpg"; thingspace.cloud.restore({ path: fileToRestore, success: function(resp) { }, });
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.