> For the complete documentation index, see [llms.txt](https://api.eagle.cool/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.eagle.cool/item/api-item-movetotrash.md).

# /api/item/moveToTrash

**`POST`** Move items to trash.

| itemIds | Required |
| ------- | -------- |

**Sample Code:**

```javascript
var data = {
    "itemIds": ["KWLKGQW2HTHC7", "KWLOGLTX0FGHF"]
};

var requestOptions = {
  method: 'POST',
  body: JSON.stringify(data),
  redirect: 'follow'
};

fetch("http://localhost:41595/api/item/moveToTrash", requestOptions)
  .then(response => response.json())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

**Results Returned:**

```javascript
{
    "status": "success"
}
```
