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

# Delete contact

> Soft delete a contact: removes it from every client's contacts/external list, revokes its client portal access, soft-deletes its pending client invitations, and sets deleted_at on the contact (admin or clients/w scope required)



## OpenAPI

````yaml /api-reference/cx/swagger.json delete /contacts/{contact}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /contacts/{contact}:
    delete:
      tags:
        - contacts
      summary: Delete contact
      description: >-
        Soft delete a contact: removes it from every client's contacts/external
        list, revokes its client portal access, soft-deletes its pending client
        invitations, and sets deleted_at on the contact (admin or clients/w
        scope required)
      parameters:
        - description: Contact ID
          name: contact
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Contact deleted
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid contact ID
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '404':
          description: Contact not found or already deleted
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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