---
title: "Delete contacts by filter"
method: POST
path: "/contacts/delete"
tags: ["Contacts"]
---

# Delete contacts by filter

`POST /contacts/delete`

## Request

- Base URL: `https://api.textla.com/v1`
- URL: `https://api.textla.com/v1/contacts/delete`
- Auth: HTTP bearer

Deletes contacts matching the supplied filter under the authenticated account. The filter body is required; an empty JSON object matches every contact. An optional limit deletes the lowest contact IDs first and is bounded to 1,000,000. Pass the limit only as the ?limit= query parameter; a top-level `limit` key in the JSON body is rejected with 400 at body.limit instead of being forwarded as filter data. Requires a user-scope token; tenant-admin tokens are rejected with 403.

## Query parameters

- `limit` integer

## Request body

- object

## Response `200`

OK

- BulkDeleteReport
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `deleted` integer, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `412`: Precondition Failed
- `422`: Unprocessable Entity
- `500`: Internal Server Error
- `502`: Bad Gateway
- `503`: Service Unavailable
- `504`: Gateway Timeout

---

[API](https://skmtc.dev/textla/apis/textla-api.md) - [All operations](https://skmtc.dev/textla/apis/textla-api/llms.txt) - [OpenAPI document](https://skmtc.dev/textla/apis/textla-api/revisions/473f03350bc1?raw)
