Box Developer Documentation
Latest version

Permanently remove web link

delete
https://api.box.com/2.0
/web_links/:web_link_id/trash

This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

Permanently deletes a web link that is in the trash. This action cannot be undone.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

Response

none

Returns an empty response when the web link was permanently deleted.

application/jsonClient error

Returns an error if the web link is not in the trash.

application/jsonClient error

An unexpected client error.

delete
Permanently remove web link
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

Learn more about Box SDK versionig strategy.


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!')