<!-- Source: https://docs.vinsi.ai/api-docs/crm-activity-task-delete -->
# Delete Activity Task

Permanently delete an activity task. With an API key the delete is allowed only when the key's user created the task or is assigned to it; otherwise 403.

```http
DELETE https://dashboard.vinsi.ai/api/crm/activity-tasks/{taskId}
```

## Authentication

Send your API key in the `x-api-key` header. Create keys in the VINSI dashboard under Settings → API Keys.

## Headers

| Name | Type | Required |
|---|---|---|
| Content-Type | string | yes (application/json) |
| x-api-key | string | yes |

## Path parameters

| Name | Example |
|---|---|
| taskId | 901 |

## Example request

```bash
curl -X DELETE 'https://dashboard.vinsi.ai/api/crm/activity-tasks/901' \
  -H 'x-api-key: YOUR_API_KEY'
```

## Example response

```json
{
  "success": true
}
```

