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

# cycleCountsDelete

> Delete cycle counts, as the app's Delete and bulk Delete do: each count is cancelled and drops out of every read. Pass one id to delete one count. Returns one result per id: OK when deleted; SKIPPED with COMPLETED for a completed count, whose counts were applied to inventory (the app refuses the whole selection instead; here the others are still deleted); SKIPPED with NOT_FOUND for an id the store has no live count for, whether malformed, already deleted or another store's. Safe to retry: a count already deleted reads NOT_FOUND. Takes 1 to 100 different ids. Needs the `inventory_write` scope.

**Required scopes:** [`inventory_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_write)

**Store must have one of:** `IMS`

## Arguments

**cycleCountIds** `[ID!]!` *required*

The cycle counts to delete, 1 to 100 different ids.

## Returns

**cycleCountsDelete** `[CycleCountsDeleteResult!](/docs/api-reference/v3/reference/inventory/cycle-counts-delete-result)` *required*

What `cycleCountsDelete` did with each id. It runs while the request waits, so the result is final.

**fields**

**counts** `[BulkCounts!](/docs/api-reference/v3/reference/common/bulk-counts)` *required*

How many items ended each way.

**fields**

**failed** `Int!` *required*

The items that couldn't be changed.

**ok** `Int!` *required*

The items the action changed.

**skipped** `Int!` *required*

The items it didn't apply to.

**total** `Int!` *required*

The items given.

**results** `[\[CycleCountDeleteItem!\]!](/docs/api-reference/v3/reference/inventory/cycle-count-delete-item)` *required*

One per id, in the order sent; at most 100.

**fields**

**code** `String`

Why the item was skipped or failed: NOT\_FOUND, the store has no live cycle count with this id (a malformed id, one already deleted and another store's all read this way); COMPLETED, the count is completed, so its counts were applied to inventory and it can't be deleted. Null when it is OK.

**cycleCountId** `String!` *required*

The id as sent. A deleted count drops out of every read, so it isn't linked.

**message** `String`

The same, in words. Null when it is OK.

**status** `[BulkItemStatus!](/docs/api-reference/v3/reference/common/bulk-item-status)` *required*

What the action did with the item.

## Example

```graphql theme={null}
mutation {
  cycleCountsDelete(cycleCountIds: "...")
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.