> This page is for Itential Platform On-Prem, version 6 (default).
> For other versions, use one of these documentation indexes:
> - 6 (default): https://docs-test.itntl.com/itential-platform/6/llms.txt
> - 2023.2: https://docs-test.itntl.com/itential-platform/2023-2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-test.itntl.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-test.itntl.com/_mcp/server.

# Manage inventories

> Maintain inventories after initial creation, including clearing and removing inventories.

This topic explains how to maintain inventories after initial creation, including clearing and removing inventories.

> **Info**
>
> Inventory Manager consumes data from your inventory systems — it is not the authoritative source for device data.
>
> To avoid data drift, repopulate inventories from your source system.

## Clear an inventory

Remove all nodes from an inventory without deleting the inventory itself.

This is useful when:

* Decommissioning devices and need to empty an inventory temporarily
* Testing inventory population workflows
* Preparing to repopulate from a different inventory system

### Using workflows

Use the `clearInventory` task in Studio.

### Using API

```http
DELETE /inventory_manager/v1/nodes/clear/:identifier
```

**Example request:**

```http
DELETE /inventory_manager/v1/nodes/clear/prod-routers
```

**Example response:**

```json
{
  "status": "Success",
  "result": {
    "nodesDeleted": 150
  }
}
```

## Delete an inventory

Delete an inventory after removing all its nodes:

#### Clear the inventory

Remove all nodes from the inventory.

#### Delete the inventory

Delete the inventory once it is empty.

### Using workflows

Use the `deleteInventory` task in Studio.

### Using API

```http
DELETE /inventory_manager/v1/inventories/:identifier
```

**Example request:**

```http
DELETE /inventory_manager/v1/inventories/prod-routers
```

**Example response:**

```json
{
  "status": "Success",
  "result": {
    "deletedCount": 1
  }
}
```