Box Developer Documentation

Permanently Delete Web Link

Guides Trash Permanently Delete Web Link
Edit this page

Permanently Delete Web Link

Once a web link has been moved to the trash, it will stay in the trash for 30 days by default before being purged. Administrators of Business or Enterprise accounts can alter the purge window. If you wish to permanently delete the web link from the trash before the purge window expires, make a DELETE request to /web_links/:web_link_id/trash using the trashed web link's ID.

cURL
curl -i -X DELETE "https://api.box.com/2.0/web_links/12345/trash" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.trashedWebLinks.deleteTrashedWebLinkById(weblink.id);
Python v10
client.trashed_web_links.delete_trashed_web_link_by_id(weblink.id)
.NET v10
await client.TrashedWebLinks.DeleteTrashedWebLinkByIdAsync(webLinkId: weblink.Id);
Swift v10
try await client.trashedWebLinks.deleteTrashedWebLinkById(webLinkId: weblink.id)
Java v10
client.getTrashedWebLinks().deleteTrashedWebLinkById(weblink.getId())
Python v3
web_link = client.web_link(web_link_id='33333')
client.trash().permanently_delete_item(web_link)
print('The web link was deleted from trash!')