Deletes a production run.

```
v1/production/delete.php
```

## Parameters

| Field | Type | Required | Description |
|---|---|---|---|
| production_id | int | Yes | Production run ID |

Deletion cannot be undone. A made-to-order production (order_id greater than 0) is not deleted by this method: turn off production in the sale or delete the sale, see [Creating a Sale](https://developers.controlata.com/hc/api-docs/articles/api-orders-add).

## Example request

```
{
    "production_id": 39978
}
```

## Example response

```
{
    "success": true
}
```

## Errors

| Error | Reason |
|---|---|
| No production_id in input | production_id is missing |
| Production not found or access denied | Production run not found or already deleted |
| A production linked to a sale cannot be deleted. Edit the sale instead | The production was created for a sale |
