> 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/017__delete_company_folders.md).

# Delete Company Folders

GraphQL endpoint: `/company`

Deletes folders from the calling company's repository for good. Each subtree is removed and every document inside moves to the trash; a document restored later lands at the repository root.

## Query

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

```

## Variables

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

## Response

```json
{
  "data": {
    "deleteCompanyFolders": {
      "count": 1,
      "status": "OK"
    }
  }
}
```
