# IRPCApplicationTaskQueue.ClearAndDestroyTaskQueue

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Server integration API](https://developer.m-files.com/APIs/gRPC-API/integration/index.md) > [Application task queue](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/ClearAndDestroyTaskQueue/

Badges: `Server integration API / specialized` `write` `session`

Deletes a task queue and all of its tasks.

- **Service:** [Application task queue](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/index.md) `MFiles.IRPCApplicationTaskQueue`
- **gRPC method:** `/MFiles.IRPCApplicationTaskQueue/ClearAndDestroyTaskQueue`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/clear-and-destroy-task-queue`
- **Request:** [`ClearAndDestroyTaskQueueRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/ClearAndDestroyTaskQueue/index.md#request)
- **Response:** [`ClearAndDestroyTaskQueueResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCApplicationTaskQueue/ClearAndDestroyTaskQueue/index.md#response)
- **Book and level:** Server integration API, specialized
- **Kind:** write
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- **Destructive.** Deletes the queue and its tasks, whatever their state; meant for development
  and testing. Vault applications that still use the queue lose their work.
- Requires a vault session and the vault right `change_full_control_role`. Internal queue IDs
  are refused with "Access denied.".

<a id="request"></a>

## Request: ClearAndDestroyTaskQueueRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `queue_id` | `string` | The ID of the queue to delete. |

<a id="response"></a>

## Response: ClearAndDestroyTaskQueueResponse

No fields.
