# Delete User Documents

GraphQL endpoint: `/user`

Moves documents to the calling user's trash. They stay recoverable with restoreUserDocuments until the trash is emptied or they are permanently deleted.

## Query

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

```

## Variables

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

## Response

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