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

# Erase contact

> Permanently erase a WhatsApp contact and all associated data (conversations, messages, media).

The erasure is processed asynchronously. A `204 No Content` response confirms the erasure job was queued.

The `identifier` can be the contact UUID or the WhatsApp phone number (E.164 format).




## OpenAPI

````yaml /api/platform/v1/openapi-platform.yaml delete /whatsapp/contacts/{identifier}
openapi: 3.1.0
info:
  title: Kapso Platform API
  version: 0.2.0
  description: >
    Build WhatsApp messaging into your product. Manage customers, connect phone
    numbers, send broadcasts, and handle conversations.
servers:
  - url: https://api.kapso.ai/platform/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Customers
    description: Manage customer accounts
  - name: Setup Links
    description: WhatsApp onboarding via embedded signup
  - name: Phone Numbers
    description: Connect and manage WhatsApp numbers
  - name: Webhooks
    description: Subscribe to WhatsApp events
  - name: Display Names
    description: Update WhatsApp business display names
  - name: Broadcasts
    description: |
      Send template messages at scale

      **Alpha**: This API is in alpha and subject to change
  - name: Conversations
    description: Manage conversation state
  - name: Media
    description: Upload media files for WhatsApp messaging
  - name: Users
    description: Manage project team members
  - name: Inbox Embeds
    description: Create and manage embeddable inbox access links
  - name: Webhook Deliveries
    description: View webhook delivery attempts and their status
  - name: External API Logs
    description: View logs of external API calls made by the project
  - name: Provider Models
    description: List available AI provider models
  - name: WhatsApp Flows
    description: Build interactive WhatsApp Flows for surveys and forms
  - name: Contacts
    description: Manage WhatsApp contacts
paths:
  /whatsapp/contacts/{identifier}:
    parameters:
      - name: identifier
        in: path
        required: true
        description: Contact UUID or WhatsApp phone number
        schema:
          type: string
        example: 123e4567-e89b-12d3-a456-426614174000
    delete:
      tags:
        - Contacts
      summary: Erase contact
      description: >
        Permanently erase a WhatsApp contact and all associated data
        (conversations, messages, media).


        The erasure is processed asynchronously. A `204 No Content` response
        confirms the erasure job was queued.


        The `identifier` can be the contact UUID or the WhatsApp phone number
        (E.164 format).
      operationId: eraseWhatsappContact
      responses:
        '204':
          description: Erasure queued successfully
        '404':
          description: Contact not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Invalid phone number
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````