---
title: "Delete Pattern"
method: DELETE
path: "/ws/v1/patterns/{code}"
tags: ["Patterns"]
---

# Delete Pattern

`DELETE /ws/v1/patterns/{code}`

## Request

- Base URL: `https://api.iranpayamak.com`
- URL: `https://api.iranpayamak.com/ws/v1/patterns/{code}`
- Auth: API key in header `Api-Key`

Permanently delete one of your own patterns, addressed by its code. A pattern that is still in use by a connected integration cannot be deleted and returns 400 with the reason.

## Path parameters

- `code` string, required

## Response `200`

Pattern deleted.

## Other responses

- `400`: The pattern is in use and cannot be deleted.
- `404`: No pattern with this code belongs to your account.

---

[API](https://skmtc.dev/farazsms/apis/farazsms-public-apis.md) - [All operations](https://skmtc.dev/farazsms/apis/farazsms-public-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/farazsms/apis/farazsms-public-apis/revisions/e80a7c5dea3f?raw)
