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

# Delete a contact

> Removes the contact from its customer list.

The contact no longer appears in [List contacts](https://docs.olimi.ai/api-reference/endpoint/contacts/list-contacts.md).

Deleting a contact that's already deleted returns `200` again, not an error.


## OpenAPI

````yaml delete /api/v2/contacts/{id}
openapi: 3.0.1
info:
  title: Customer Management API
  description: API for managing customer lists and customers within those lists
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api-eg.olimi.ai
security:
  - bearerAuth: []
paths:
  /api/v2/contacts/{id}:
    delete:
      tags:
        - Contacts
      summary: Delete a contact
      description: Removes the contact from its customer list.
      parameters:
        - name: id
          in: path
          required: true
          description: The contact's `id`.
          schema:
            type: string
            format: uuid
          example: b2f7c4e1-8a3d-4c59-9e06-1d5a7f3b8c42
      responses:
        '200':
          description: The contact was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResponse'
              example:
                message: Contact deleted successfully
                data: null
        '400':
          description: '`id` isn''t a valid UUID.'
        '401':
          description: The `X-API-KEY` header is missing or the key isn't valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: >-
            `contact_not_found`: no contact with that `id` belongs to your
            company. Deleting an already-deleted contact returns `200`, not 404.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - apiKeyAuth: []
components:
  schemas:
    DeleteResponse:
      type: object
      properties:
        message:
          type: string
          example: Deleted successfully
        data:
          type: object
          nullable: true
          example: null
    ApiError:
      type: object
      properties:
        statusCode:
          type: integer
          example: 404
        errorCode:
          type: string
          description: Machine-readable error code.
          example: agent_not_found
        message:
          type: string
          description: Human-readable text. May change; don't match on it.
          example: Agent not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````

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