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

# Delete Contact



## OpenAPI

````yaml api-reference/openapi.json delete /audiences/{id}/contacts/{contactId}
openapi: 3.0.0
info:
  title: OpenAPI Documentation Amisend
  version: 1.0.0
servers:
  - url: https://api.amisend.com
  - url: http://localhost:3015/api
security: []
tags: []
paths:
  /audiences/{id}/contacts/{contactId}:
    delete:
      tags:
        - Contact
      summary: Delete Contact
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
          description: ID of the audience
        - in: path
          name: contactId
          required: true
          schema:
            type: string
          description: ID of the contact
      responses:
        '201':
          description: Contact removed from audience
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Audience'
        '401':
          description: Unauthorized
        '404':
          description: Audience or contact not found
        '500':
          description: Error removing contact
      security:
        - bearerAuth: []
components:
  schemas:
    Audience:
      type: object
      properties:
        _id:
          type: string
        name:
          type: string
        contacts:
          type: array
          items:
            type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````