# deleteInventoryCollection

Audience: Developer

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

## Arguments

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

## Returns

[InventoryCollectionDeletePayload](https://docs.pyck.cloud/api/types/inventorycollectiondeletepayload.md)!

## Example

Deletes an inventory collection. Only possible if the collection has no movements. Delete all item and repository movements first before deleting the collection.

```graphql
mutation DeleteInventoryCollection($id: ID!) {
  deleteInventoryCollection(id: $id) {
    deletedID
    eventCount
    transactionID
  }
}
```

**Variables**

```json
{
  "id": "<collection ID>"
}
```
