purge customer data

View as Markdown
# Purge Customer Data Permanently deletes all privacy-related data associated with a customer account. This endpoint is used to fulfill "right to be forgotten" requests and ensure complete data deletion in compliance with privacy regulations. ## Endpoint ``` DELETE {base_url}/api/v1/{account_id}/privacy/data ``` ## Required Variables - **base_url**: The base URL for the BotBye API - **account_id**: Your unique account identifier ## Authentication Requires API key authentication via the `api_key` variable. ## Response Returns a confirmation response indicating successful deletion of customer data. ## ⚠️ Warning **This action is irreversible.** Once customer data is purged, it cannot be recovered. Ensure you have: - Verified the deletion request is legitimate - Completed any required data exports - Obtained necessary approvals - Documented the deletion for compliance records ## Use Cases - **GDPR Right to Erasure**: Fulfill Article 17 deletion requests - **CCPA Deletion Rights**: Comply with California Consumer Privacy Act requirements - **Account Closure**: Remove all data when a customer closes their account - **Data Retention Compliance**: Delete data that has exceeded retention periods ## Best Practices 1. Always retrieve and backup data using the GET endpoint before deletion 2. Maintain audit logs of deletion requests 3. Verify the request authenticity before executing 4. Confirm deletion completion with the customer ## Data Scope This endpoint removes all customer-related data including: - Personal information - Account details - Historical records - Associated metadata - Activity logs

Authentication

X-Api-Keystring

Project API token. Generate it in your BotBye account and send it in the X-Api-Key request header.

Path parameters

account_idstringRequired

Response headers

Content-Lengthinteger
Connectionstring

Response

purge customer data