from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.links.delete_many(request={
"link_ids": [
"clux0rgak00011...",
"clux0rgak00022...",
],
})
# Handle response
print(res){
"deletedCount": 123
}Bulk delete up to 100 links for the authenticated workspace.
from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.links.delete_many(request={
"link_ids": [
"clux0rgak00011...",
"clux0rgak00022...",
],
})
# Handle response
print(res){
"deletedCount": 123
}Default authentication mechanism
Comma-separated list of link IDs to delete. Maximum of 100 IDs. Non-existing IDs will be ignored.
["clux0rgak00011...", "clux0rgak00022..."]The deleted links count.
The number of links deleted.
Was this page helpful?