Skip to content

Deleting a User Profile

CustomerLabs supports permanent deletion of user profiles to comply with GDPR right-to-erasure requests and similar privacy regulations. Deletion can be initiated via the CustomerLabs dashboard or through the API.

Users can be identified for deletion using any of the following:

  • CustomerLabs User ID
  • Email address
  • Phone number
  • Facebook fbp
  • Google Analytics Client ID
  • Any external ID configured in your source (e.g., HubSpot ID, Intercom Visitor ID)

Method 1 — Delete via CustomerLabs Dashboard

Section titled “Method 1 — Delete via CustomerLabs Dashboard”
  1. Navigate to Audience → Find User and click Find User.

    Audience menu with Find User option in CustomerLabs
    Find User section in CustomerLabs
  2. Select the identifying key from the dropdown (e.g., email, phone, CustomerLabs User ID).

    Identifying key dropdown in Find User
  3. Enter the corresponding value and click Find Data.

    Identifier value entered and Find Data clicked
  1. Once the user profile is returned, click the delete icon on the profile.

    User profile returned in Find User results
    Delete icon on the user profile
  2. Copy the displayed User ID, paste it into the confirmation field, and confirm the deletion request.

    User ID confirmation field for deletion request

Track the status of deletion requests under Audience → Find User → User Deletion Logs.

Deletion requests can be cancelled within 24 hours of submission. Navigate to Audience → Delete User, locate the relevant entry, and click Cancel Request. Paste the User ID into the confirmation field and confirm.

Deletion request queued in CustomerLabs
User Deletion Logs showing deletion request status
Cancel Request option in User Deletion Logs

The status will update to Cancelled in the deletion logs.


  1. Navigate to Settings → API Key and click Generate Key.

    Settings → API Key section in CustomerLabs
    Generate Key button in CustomerLabs API Key settings
  2. Copy and securely store the generated API key.

    Generated API key ready to copy in CustomerLabs

Send a POST request to the deletion endpoint with the user’s identifying key and value.

Endpoint: https://api.customerlabs.co/user-deletion/

curl --location 'https://api.customerlabs.co/user-deletion/' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"identify_by_key": "email",
"identify_by_value": "[email protected]"
}'

Success response:

{
"success": true,
"message": "User Deletion has been added to queue"
}

Send a POST request to the cancel endpoint within 24 hours of the original deletion request.

Endpoint: https://api.customerlabs.co/user-deletion/cancel-request/

curl --location 'https://api.customerlabs.co/user-deletion/cancel-request/' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"identify_by_key": "email",
"identify_by_value": "[email protected]"
}'

Success response:

{
"success": true,
"message": "User deletion request has been cancelled"
}
HTTP StatusResponseCause
403{"message": "Forbidden"}Invalid or missing API key
200{"success": false, "message": "No delete record found for this query"}No matching user found for the given identifier