Skip to navigation

purge customer data

View as Markdown

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

Accepted permissions Account → Profile → Delete profile

Token scope Profile Action

Authentication

X-Api-Keystring

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.

Path parameters

account_idstringRequired

Response headers

Content-Lengthinteger
ConnectionstringOptional

Response

purge customer data