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

# Delete Contact

> Soft-delete a contact by ID

<Note>
  This performs a **soft delete** — the contact is marked as deleted but not permanently removed from the database.
  Soft-deleted contacts can be restored by calling the [upsert](/api-reference/core-data/contacts/upsert) or [update by
  ID](/api-reference/core-data/contacts/update-by-id) endpoint.
</Note>

## Common Errors

| Error          | Cause                   | Solution                               |
| -------------- | ----------------------- | -------------------------------------- |
| `not_found`    | No contact with this ID | Verify the contact ID                  |
| `unauthorized` | Invalid API key         | Verify API key in Authorization header |

## Related Endpoints

* **[Create or Update Contact](/api-reference/core-data/contacts/upsert)**: Create a new contact or restore a deleted one
* **[Get Contact by Email](/api-reference/core-data/contacts/get-by-email)**: Look up a contact by email
* **[Update Contact by ID](/api-reference/core-data/contacts/update-by-id)**: Update a specific contact


## OpenAPI

````yaml delete /public/v1/contacts/{id}
openapi: 3.1.0
info:
  title: API Documentation
  description: Documentation for transactional and subscribe APIs
  version: 1.0.0
servers:
  - url: https://app.minimo.it
security:
  - bearerAuth: []
paths:
  /public/v1/contacts/{id}:
    servers:
      - url: https://api.minimo.it
    delete:
      summary: Soft-delete a contact
      description: >-
        Marks a contact as deleted. The contact can be restored later by calling
        the upsert or update-by-ID endpoint.
      operationId: deleteContact
      parameters:
        - name: id
          in: path
          required: true
          description: Contact ID
          schema:
            type: integer
      responses:
        '200':
          description: Contact deleted
          content:
            application/json:
              schema:
                type: boolean
                examples:
                  - true
        '404':
          description: Contact not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    examples:
                      - Contact not found
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: Python
          source: |-
            import requests

            url = 'https://api.minimo.it/public/v1/contacts/42'
            headers = {'Authorization': 'Bearer {{BEARER_TOKEN}}'}
            response = requests.delete(url, headers=headers)
            print(response.json())
        - lang: JavaScript
          source: >-
            const response = await
            fetch('https://api.minimo.it/public/v1/contacts/42', {
              method: 'DELETE',
              headers: { 'Authorization': 'Bearer {{BEARER_TOKEN}}' }
            });

            const result = await response.json();

            console.log(result);
        - label: CLI
          lang: cURL
          source: |-
            curl --request DELETE \
              --url 'https://api.minimo.it/public/v1/contacts/42' \
              --header 'Authorization: Bearer {{BEARER_TOKEN}}'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: mn-API_CLIENT_ID-API_KEY

````