---
title: "Archive a messaging program"
description: "Archive a program. `DELETE /api/v1/sms/messaging-programs/{id}`"
url: https://www.unitpost.com/docs/sms/delete-sms-messaging-programs-id
section: "SMS API reference"
updated: 2026-10-13
---
# Archive a messaging program

`DELETE /api/v1/sms/messaging-programs/{id}`

Archive a program. Registrations that copied it keep their copy; [Duplicate a messaging program](https://www.unitpost.com/docs/sms/post-sms-messaging-programs-id-duplicate) to use it again. Requires the `sms:manage` capability.

## Parameters

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

## Responses

| Status | Description |
| --- | --- |
| 204 | Archived. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | Messaging program not found (or already archived), or SMS is not enabled. |
| 422 | A query key (this operation takes none). |

## Example request

```bash
curl -X DELETE 'https://www.unitpost.com/api/v1/sms/messaging-programs/123' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## 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-messaging-programs-id
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
