> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/012_documents/011__permanently_delete_user_documents.md).

# Permanently Delete User Documents

GraphQL endpoint: `/user`

Removes documents from the calling user's trash for good, deleting the stored files as well. Only documents already in the trash can be deleted this way.

## Query

```graphql
mutation ($ids: [ID!]!) {
  permanentlyDeleteUserDocuments(ids: $ids) {
    status
    count
  }
}

```

## Variables

```json
{
  "ids": [
    "00000000-0000-4000-8000-000000000001",
    "00000000-0000-4000-8000-000000000002"
  ]
}
```

## Response

```json
{
  "data": {
    "permanentlyDeleteUserDocuments": {
      "count": 2,
      "status": "OK"
    }
  }
}
```
