# deleteReplenishmentOrder

Audience: Programmer

**Served by:** [inventory](https://docs.pyck.cloud/latest/api/services/inventory.md)

## Arguments

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `id` | ID! |  |  |

## Returns

[ReplenishmentOrderDeletePayload](https://docs.pyck.cloud/latest/api/types/replenishmentorderdeletepayload.md)!

## Example

Soft-deletes a replenishment order by ID.

```graphql
mutation DeleteReplenishmentOrder($id: ID!) {
  deleteReplenishmentOrder(id: $id) {
    deletedID
    eventCount
    transactionID
  }
}
```

**Variables**

```json
{
  "id": "<replenishment order ID>"
}
```
