---
title: "Delete a task and its subtasks, or keep them as tasks"
method: DELETE
path: "/crm/tasks/{entryId}"
tags: ["crm"]
---

# Delete a task and its subtasks, or keep them as tasks

`DELETE /crm/tasks/{entryId}`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/crm/tasks/{entryId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Delete a task and its subtasks, or keep them as tasks.

## Path parameters

- `entryId` string, required

## Request body

- object
  - `subtasks` 'delete' | 'keep': What happens to its subtasks: delete them too (default) or keep them as tasks.

## Response `200`

Successful response

- object

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
