---
title: "Delete a selling plan (soft delete)"
description: "Soft-delete a preorder selling plan by ID. The plan is discarded (its discarded_at is set) and detached from the storefront, but historical preorder data is preserved. Returns 404 if the plan does not exist and 422 if it"
url: https://docs.stoqapp.com/v1/preorders/delete-a-selling-plan-soft-delete/
api: "API v1 (legacy)"
method: DELETE
path: "/external/preorders/{id}"
---

# Delete a selling plan (soft delete)

`DELETE https://app.stoqapp.com/api/v1/external/preorders/{id}`

Soft-delete a preorder selling plan by ID. The plan is discarded (its `discarded_at` is set) and detached from the storefront, but historical preorder data is preserved. Returns 404 if the plan does not exist and 422 if it could not be deleted.

## Path parameters

- `id` (string, required): Selling plan ID

## Headers

- `X-Auth-Token` (string, required): API key for authentication

## Returns

- `success` (boolean): e.g. `true`
- `message` (string): e.g. `Selling plan deleted`

Rate limit: this call costs 2 points ([rate limits](https://docs.stoqapp.com/docs/rate-limits/)).

## Example request

```sh
curl -X DELETE "https://app.stoqapp.com/api/v1/external/preorders/79b44c6c-ebc7-41d4-8a1b-573d7c693454" \
  -H "X-Auth-Token: $STOQ_API_KEY"
```

## 200

Selling plan deleted successfully

```json
{
  "success": true,
  "message": "Selling plan deleted"
}
```

## 401

Unauthorized

## 404

Selling plan not found

## 422

Failed to delete selling plan

