> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pureclarity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Forget a user (GDPR)

> Submit a request to remove all identifiable data for a specific user
from PureClarity. This supports GDPR right-to-erasure compliance.

Once submitted, PureClarity schedules a task to remove all potentially
identifiable data, including any associated email addresses. Forgotten
email addresses are stored as hashed values for deduplication purposes.

**This action is irreversible.** Once a user has been forgotten, their
data cannot be restored.




## OpenAPI

````yaml /integrations/custom/api-reference/openapi.yaml post /api/user/forget
openapi: 3.0.3
info:
  title: PureClarity Capture API
  description: >
    The PureClarity Capture API provides endpoints for server-side integration
    with the PureClarity

    personalization platform. Use these endpoints to submit tracking events,
    retrieve personalized

    recommendations, manage product data feeds, and handle GDPR compliance.


    ## Authentication


    All endpoints require your **Access Key** (`appKey` / `appId` / `AccessKey`)
    to identify your store.

    Server-side endpoints also require a **Secret Key** (`secretKey` /
    `SecretKey`) for authentication.


    You can find both keys in the PureClarity Admin console under **My Account >
    Integrations**.


    <Warning>Never expose your Secret Key in client-side code or public
    repositories.</Warning>


    ## Regional Endpoints


    PureClarity operates in two regions. Use the base URL for the region your
    account is provisioned in:


    | Region | Base URL |

    |--------|----------|

    | EU (Ireland) | `https://api-eu-w-1.pureclarity.net` |

    | US (Virginia) | `https://api-us-e-1.pureclarity.net` |


    For data feed operations via SFTP streaming, use the SFTP regional endpoints
    on port 443:


    | Region | SFTP Base URL |

    |--------|---------------|

    | EU (Ireland) | `https://sftp-eu-w-1.pureclarity.net` |

    | US (Virginia) | `https://sftp-us-e-1.pureclarity.net` |
  version: 1.0.0
  contact:
    name: PureClarity Support
    email: support@pureclarity.com
    url: https://pureclarity.com
  license:
    name: Proprietary
servers:
  - url: https://api-eu-w-1.pureclarity.net
    description: EU Region (Ireland)
  - url: https://api-us-e-1.pureclarity.net
    description: US Region (Virginia)
security: []
tags:
  - name: Server-side
    description: Server-side personalization and event tracking
  - name: Data Feeds
    description: Product, category, brand, and user data feed management
  - name: GDPR
    description: GDPR compliance endpoints for user data management
paths:
  /api/user/forget:
    post:
      tags:
        - GDPR
      summary: Forget a user (GDPR)
      description: |
        Submit a request to remove all identifiable data for a specific user
        from PureClarity. This supports GDPR right-to-erasure compliance.

        Once submitted, PureClarity schedules a task to remove all potentially
        identifiable data, including any associated email addresses. Forgotten
        email addresses are stored as hashed values for deduplication purposes.

        **This action is irreversible.** Once a user has been forgotten, their
        data cannot be restored.
      operationId: forgetUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForgetUserRequest'
            example:
              AccessKey: your-access-key
              SecretKey: your-secret-key
              Identifier: user@example.com
      responses:
        '200':
          description: Forget request submitted successfully
          content:
            text/plain:
              schema:
                type: string
                example: The request was submitted successfully
        '400':
          description: Validation error or missing required fields
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedErrorResponse'
        '403':
          description: Invalid access key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedErrorResponse'
        '404':
          description: Identifier not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedErrorResponse'
components:
  schemas:
    ForgetUserRequest:
      type: object
      required:
        - AccessKey
        - SecretKey
        - Identifier
      properties:
        AccessKey:
          type: string
          description: Your store's unique access key
        SecretKey:
          type: string
          description: Your store's secret key
        Identifier:
          type: string
          description: |
            The user identifier to forget. This can be an email address,
            user ID, or any other identifier associated with the user in
            PureClarity.
    FeedErrorResponse:
      type: object
      properties:
        Error:
          type: string
          description: Error message describing what went wrong

````