---
title: "Delete a task"
method: DELETE
path: "/v2/tasks/{taskId}"
tags: ["Tasks"]
---

# Delete a task

`DELETE /v2/tasks/{taskId}`

## Request

- Base URL: `https://api.zenzap.co`
- URL: `https://api.zenzap.co/v2/tasks/{taskId}`
- Auth: one of:
  - HTTP bearer and API key in header `X-Signature`
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.zenzap.co/oauth/token` scopes: `task:write`
- TypeScript: <https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/docs/v2/tasks/:taskId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a task by ID.

## Path parameters

- `taskId` string, uuid, required

## Headers

- `X-Signature` string
- `X-Timestamp` integer

## Response `204`

Task deleted successfully

## Other responses

- `400`: Bad request - invalid input
- `401`: Unauthorized - invalid or missing API token
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api.md) - [All operations](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/revisions/37faae2c2036?raw)
