---
title: "Remove a brand document"
description: "Remove a document from the brand. `DELETE /api/v1/sms/brands/{id}/documents/{documentId}`"
url: https://www.unitpost.com/docs/sms/delete-sms-brands-id-documents-documentid
section: "SMS API reference"
updated: 2026-11-11
---
# Remove a brand document

`DELETE /api/v1/sms/brands/{id}/documents/{documentId}`

Remove a document from the brand. Its file is deleted, unless a registration sent it to a regulator (`file_kept`: kept as the record of what they received). Refused (`409 conflict`) while a Sender ID registration that sent it is under review. Requires the `sms:manage` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |
| `documentId` | path | string | yes | — |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `id` | string | yes | — |
| `deleted` | boolean | yes | — |
| `file_kept` | boolean | yes | A registration sent this file to a regulator, so it is kept as the record of what they received (not on the brand any more). |

## Responses

| Status | Description |
| --- | --- |
| 200 | Removed. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | Document not found, or SMS is not enabled. |
| 409 | A registration under review sent this document. |
| 422 | A query key (this operation takes none). |
| 429 | Too many brand writes; retry after the wait. |

## Example request

```bash
curl -X DELETE 'https://www.unitpost.com/api/v1/sms/brands/sms_123/documents/documentId_123' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "object": "sms_brand_document",
  "id": "id_123",
  "deleted": true,
  "file_kept": false
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/sms/delete-sms-brands-id-documents-documentid
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
