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

# Remove data for several visitors

> Remove data for multiple visitors.

This endpoint always requires authentication. Send a bearer token in the `Authorization` header, and call the endpoint from your servers, never from a browser.



## OpenAPI

````yaml /data.api.json post /visit/forget
openapi: 3.0.1
info:
  title: Kameleoon Data API
  description: ''
  version: '1.0'
servers:
  - url: https://eu-data.kameleoon.io
  - url: https://na-data.kameleoon.io
  - url: https://eu-data.kameleoon.eu
  - url: https://na-data.kameleoon.eu
security: []
tags:
  - name: Map
    description: Get and update data for one or several keys.
  - name: Product
    description: >-
      Get product counters and attributes, and send product events, for one or
      several products.
  - name: Visit
    description: >-
      Send visitor and conversion events, read a visitor's activity feed, and
      remove a visitor's data.
paths:
  /visit/forget:
    post:
      tags:
        - Visit
      summary: Remove data for several visitors
      description: >-
        Remove data for multiple visitors.


        This endpoint always requires authentication. Send a bearer token in the
        `Authorization` header, and call the endpoint from your servers, never
        from a browser.
      operationId: forgetVisitors
      parameters:
        - name: user-agent
          in: header
          required: false
          description: >-
            Not always required. Kameleoon rejects an incoming request if the
            source is a bot or spider, based on [IAB/ABC user-agent filtering
            rules](https://www.iab.com/guidelines/iab-abc-international-spiders-bots-list/).

            Kameleoon uses a single-pass method. You don't need to take specific
            action when sending requests from a web browser using a standard
            library (XHR). However, in other cases, set a custom value for the
            `User-Agent` request header to overwrite the default value the
            library sets.
          schema:
            type: string
            default: kameleoon-docs
        - name: siteCode
          in: query
          description: ID of the Kameleoon project
          required: true
          schema:
            type: string
      requestBody:
        description: >-
          A list of visitor codes (unique Kameleoon visitor IDs) to remove. The
          body size limit is 1 MB.<br/><br/>Include one visitor code per
          line.<br/>Limit every visitor code to 100 characters.<br/><br/><b>Body
          example:</b><br/><pre><code>visitorCode1

          visitorCode2

          visitorCode3</code></pre>
        content:
          text/plain:
            schema:
              type: string
              format: UTF-8
        required: true
      responses:
        '202':
          description: >-
            Kameleoon accepted the request and returns no content. Kameleoon
            processes the body asynchronously, so it has not checked the body
            syntax yet. A 202 response doesn't confirm that the body is valid.
        '400':
          description: >-
            The URL query syntax is malformed. Check the query parameters
            against the parameter list for this operation.
        '401':
          description: >-
            Authentication failed. The bearer token has an incorrect format, has
            expired, or has an invalid signature. This endpoint always requires
            a token.
        '403':
          description: >-
            Access denied. The `user-agent` is forbidden, or the resource is
            restricted. See the `user-agent` parameter for the bot and spider
            rules.
        '413':
          description: The body is larger than 1 MB.
        '429':
          description: >-
            Kameleoon rate-limited the request. Reduce your request rate before
            you retry.
        '500':
          description: An unexpected error occurred on Kameleoon's side.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        OAuth 2.0 access token (JSON web token). Get one with the same flow as
        the Automation API:
        https://docs.kameleoon.com/developer-docs/apis/automation-api-rest/get-started/get-started#authentication

````