> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cuprice.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Plan

> Remove a pricing plan from a project

Permanently deletes a pricing plan from the project.

<Warning>
  This action is irreversible. The plan and all its feature associations will be permanently removed.
</Warning>

## Endpoint

```
DELETE /api/v1/projects/{slug}/plans/{planId}
```

## Authentication

<ParamField header="Authorization" type="string" required>
  Bearer token with your API key. Requires `read_write` permission.
</ParamField>

## Path Parameters

<ParamField path="slug" type="string" required>
  The project's URL-friendly slug identifier.
</ParamField>

<ParamField path="planId" type="number" required>
  The plan's unique ID.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  `true` if the plan was successfully deleted.
</ResponseField>

## Example

```bash theme={null}
curl -X DELETE https://cuprice.io/api/v1/projects/my-saas-app/plans/201 \
  -H "Authorization: Bearer cpk_your_key_here"
```

```json theme={null}
{
  "success": true
}
```

## Errors

| Status | Description                                   |
| ------ | --------------------------------------------- |
| `401`  | Invalid or missing API key                    |
| `403`  | API key does not have `read_write` permission |
| `404`  | Project or plan not found                     |
