Join the first BoxWorks Hackathon for Good - customers, partners, and the developer community are welcome to participate in the 48 hour Hack to benefit The Nature Conservancy.

Learn more and register!

Delete Web Link

Delete Web Link

To remove a web link in Box you will need to provide our API with the ID of the web link.

cURL
curl -i -X DELETE "https://api.box.com/2.0/web_links/12345" \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
.NET
await client.WebLinksManager.DeleteWebLinkAsync("11111");
Java
BoxWebLink webLink = new BoxWebLink(api, id);
webLink.delete();
Python
client.web_link('12345').delete()
print('The web link was deleted!')
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")
}