---
title: "Delete a snippet"
method: DELETE
path: "/v1/snippets/{snippet_name}"
tags: ["Snippets"]
---

# Delete a snippet

`DELETE /v1/snippets/{snippet_name}`

Remove a snippet. You can only remove a snippet that is not in use. If your snippet is in use, you'll receive a `400` error.

## Response `204`

A successful delete operation returns no content.

## Other responses

- `400` — The snippet is in use. You can't delete a snippet until you remove it from messages, templates, etc.
- `404` — The snippet does not exist.
- `429` — Your request is over the 10-per-second limit.

---

[API](https://skmtc.dev/customer/apis/customer-io-journeys-api-reference.md) · [All operations](https://skmtc.dev/customer/apis/customer-io-journeys-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/customer/customer-io-journeys-api-reference/revisions/4b391af7cb06/schema)
