Skip to main content
DELETE
/
v1
/
customers
/
external
/
{external_id}
Python (SDK)
from polar_sdk import Polar


with Polar(
    access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

    polar.customers.delete_external(external_id="<id>", anonymize=False)

    # Use the SDK ...
{
  "error": "<string>",
  "detail": "<string>"
}

Authorizations

Authorization
string
header
required

You can generate an Organization Access Token from your organization's settings.

Path Parameters

external_id
string
required

The customer external ID.

Query Parameters

anonymize
boolean
default:false

If true, also anonymize the customer's personal data for GDPR compliance.

Response

Customer deleted.