Latest version

Remove web link

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

Deletes a web link.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

Response

none

An empty response will be returned when the web link was successfully deleted.

application/jsonClient error

An unexpected client error.

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

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/web_links/12345" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.webLinks.deleteWebLinkById(webLinkId);
Python Gen
client.web_links.delete_web_link_by_id(web_link_id)
.NET Gen
await client.WebLinks.DeleteWebLinkByIdAsync(webLinkId: webLinkId);
Swift Gen (Beta)
try await client.webLinks.deleteWebLinkById(webLinkId: webLinkId)
Java
BoxWebLink webLink = new BoxWebLink(api, id);
webLink.delete();
Python
client.web_link('12345').delete()
print('The web link was deleted!')
.NET
await client.WebLinksManager.DeleteWebLinkAsync("11111");
Node
client.weblinks.delete('11111')
	.then(() => {
		// deletion succeeded — no value returned
	});
iOS
client.webLinks.delete(webLinkId: "11111") { (result: Result<Void, BoxSDKError>) in
    guard case .success = result else {
        print("Error removing web link")
        return
    }

    print("WebLink removed")
}