---
title: "Leave the given inventory."
method: POST
path: "/inventories/delete"
tags: ["Inventory"]
---

# Leave the given inventory.

`POST /inventories/delete`

## Request

- Base URL: `https://asm.cloud.tenable.com/api/1.0`
- URL: `https://asm.cloud.tenable.com/api/1.0/inventories/delete`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/tenable/apis/attack-surface-management/docs/inventories/delete/post.ts> (a function with typed inputs; its response is checked against the schema)

Removes the current user from the given inventory.

## Query parameters

- `inventory_id` integer, required

## Response `200`

OK

- object
  - `numberOfRowsDeleted` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/tenable/apis/attack-surface-management.md) - [All operations](https://skmtc.dev/tenable/apis/attack-surface-management/llms.txt) - [OpenAPI document](https://skmtc.dev/tenable/apis/attack-surface-management/revisions/465c06285e48?raw)
