from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.customers.delete(id="<id>")
# Handle response
print(res){
"id": "<string>"
}Delete a customer from a workspace.
from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.customers.delete(id="<id>")
# Handle response
print(res){
"id": "<string>"
}Default authentication mechanism
The unique ID of the customer. You may use either the customer's id on Dub (obtained via /customers endpoint) or their externalId (unique ID within your system, prefixed with ext_, e.g. ext_123).
The customer was deleted.
The unique ID of the customer. You may use either the customer's id on Dub (obtained via /customers endpoint) or their externalId (unique ID within your system, prefixed with ext_, e.g. ext_123).
Was this page helpful?