> 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/002_company/011_documents/011__permanently_delete_company_documents.md).

# Permanently Delete Company Documents

GraphQL endpoint: `/company`

Removes documents from the calling company'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!]!) {
  permanentlyDeleteCompanyDocuments(ids: $ids) {
    status
    count
  }
}

```

## Variables

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

## Response

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