Permanently deletes a folder that is in the trash. This action cannot be undone.
0
The unique identifier that represent a folder.
The ID for any folder can be determined
by visiting this folder in the web application
and copying the ID from the URL. For example,
for the URL https://*.app.box.com/folder/123
the folder_id
is 123
.
The root folder of a Box account is
always represented by the ID 0
.
Returns an empty response when the folder was permanently deleted.
Returns an error if the folder is not in the trash.
An unexpected client error.
curl -X DELETE https://api.box.com/2.0/folders/4353455/trash \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
await client.FoldersManager.PurgeTrashedFolderAsync("22222");
String folder = "123456";
BoxTrash trash = new BoxTrash(api);
trash.deleteFolder(folderID);
folder = client.folder(folder_id='22222')
client.trash().permanently_delete_item(folder)
print('The folder was deleted from trash!')
client.folders.deletePermanently('22222')
.then(() => {
// deletion succeeded — no value returned
});