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
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
- Always retrieve and backup data using the GET endpoint before deletion
- Maintain audit logs of deletion requests
- Verify the request authenticity before executing
- 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
Accepted permissions
Account → Profile → Delete profileToken scope
Profile Action
Authentication
Personal access token. Create it in your BotBye account under Profile → Personal Access Tokens, tick the scopes the endpoints you call require (see each endpoint’s Token scope), and send the token in the X-Api-Key request header. A token works only for the account it was created in.

