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

# Delete a contact

> Removes the contact and its events, for example when a user deletes their account with you. Chats and messages stay.



## OpenAPI

````yaml /openapi.yaml delete /contacts/{userId}
openapi: 3.1.0
info:
  title: Frictionless Context API
  version: '1.0'
  description: >-
    Send who your customers are and what just happened to them, so agents see it
    beside the chat.
servers:
  - url: https://api.usefrictionless.com/api/v1
security:
  - apiKey: []
tags:
  - name: Contacts
  - name: Events
paths:
  /contacts/{userId}:
    parameters:
      - $ref: '#/components/parameters/userId'
    delete:
      tags:
        - Contacts
      summary: Delete a contact
      description: >-
        Removes the contact and its events, for example when a user deletes
        their account with you. Chats and messages stay.
      operationId: deleteContact
      responses:
        '200':
          description: Deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
                    example: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PlanRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    userId:
      name: userId
      in: path
      required: true
      description: 'Your own ID for this user. 1 to 128 letters, numbers or `_ . : @ + -`.'
      schema:
        type: string
        example: user_42
  responses:
    Unauthorized:
      description: '`missing_key` or `invalid_key`: no API key, or one that was rotated.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PlanRequired:
      description: '`plan_required`: the Context API is on the Pro plan and above.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: '`contact_not_found`: no contact with this userId.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: '`rate_limited`: over 300 requests a minute. Wait and retry.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
              description: Says what to fix.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Your API key (`fk_live_…`) from Settings → Developers.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.