# Trash Library Item Tool

`library_delete_trash` moves a Library item to the trash. A folder goes with everything in it. A person can restore it from the trash until it is purged.

## When to Use

The agent uses it when asked to delete a document, folder or file. To remove part of a document, use `library_block_delete`.

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `identifier` | string | Yes | The item's id (ULID) or slug, as `library_list`, `library_search` and `library_get` return them |

## Returns

| Field | Type | Description |
|-------|------|-------------|
| `trashed` | number | How many items were moved to the trash: the item, and for a folder everything in it |
| `item_id` | string | The named item's id |
| `name` | string | The named item's name |

## Example Scenario

```json
{ "identifier": "old-drafts-ab12cd" }
```

## Notes

- An unknown or trashed identifier is refused with `Library item not found: <identifier>`
- Refused when the item's AI access policy denies reads or writes: `AI access denied: this resource is not writable by AI tools.` (or `not readable`)
- Off by default on the hosted MCP server
- Risk: destructive
