# Delete task

> Delete it for good.

Source: https://docs.mycrmsim.com/docs/tasks/delete-task

```http
DELETE https://backend.mysmsgateway.app/api/v1/ext/tasks/{id}
```

- Category: myCRMSIM Tasks / Tasks
- Auth: Bearer access token
- Scope: `tasks.write`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | number | yes | Task id. Example: `300` |

## Response 200

OK

```json
{
  "success": true,
  "message": "Task deleted"
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): tasks.write. This integration was granted: …"
}
```

## Response 404

Task does not exist or is not in a workspace of the installer

```json
{
  "success": false,
  "message": "Task not found or not accessible to this token"
}
```
