> ## 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.

# cycleCountPlansRemove

> Remove products and bins from a cycle count that hasn't been completed or cancelled, as the app's Remove does, along with any counts recorded under them. Pass the plan ids `cycleCount` lists under `plans`. Returns one result per plan: OK when removed; SKIPPED with STARTED when counting it has started (the app refuses the whole selection instead; here the others are still removed); SKIPPED with NOT_FOUND for an id that isn't a plan of this count, whether malformed, already removed or another count's. A count keeps at least one plan: removing the last of them fails the whole call. Safe to retry: a plan already removed reads NOT_FOUND. Takes 1 to 100 different ids; a repeated id counts once. Returns null when the store has no live cycle count with this id, whether malformed, deleted or another store's, and changes nothing. Needs the `inventory_write` scope. Errors: BAD_USER_INPUT when there are no ids or more than 100; CYCLE_COUNT_NOT_EDITABLE (400) when the count is completed or cancelled; CYCLE_COUNT_PLANS_REQUIRED (409) when the call would remove every plan the count has left.

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

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

## Arguments

**cycleCountId** `ID!` *required*

The cycle count to remove from.

**planIds** `[ID!]!` *required*

The plans to remove, 1 to 100 different ids. A plan is one product or one bin of the count.

## Returns

**cycleCountPlansRemove** `[CycleCountPlansRemoveResult](/docs/api-reference/v3/reference/inventory/cycle-count-plans-remove-result)`

What `cycleCountPlansRemove` did with each plan. 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** `[\[CycleCountPlansRemoveItem!\]!](/docs/api-reference/v3/reference/inventory/cycle-count-plans-remove-item)` *required*

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

**fields**

**code** `String`

Why the item was skipped or failed: NOT\_FOUND, the id isn't a product or bin of this cycle count (a malformed id, one already removed and another count's all read this way); STARTED, counting it has started, so removing it would lose the counts recorded. Null when it is OK.

**id** `ID!` *required*

The id this item answers, as it was given. A repeated id has one item.

**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 {
  cycleCountPlansRemove(cycleCountId: "...", planIds: "...")
}
```


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