---
title: "Delete task"
method: DELETE
path: "/v2/storage/scheduled-tasks/{taskId}"
tags: ["Scheduled tasks"]
---

# Delete task

`DELETE /v2/storage/scheduled-tasks/{taskId}`

## Request

- Base URL: `https://connection.keboola.com`
- URL: `https://connection.keboola.com/v2/storage/scheduled-tasks/{taskId}`
- Auth: one of:
  - API key in header `X-StorageApi-Token`
  - API key in header `X-KBC-ManageApiToken`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/keboola/apis/keboola-storage-api/docs/v2/storage/scheduled-tasks/:taskId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a scheduled task.

## Path parameters

- `taskId` string, uuid, required

## Response `204`

Scheduled task deleted.

## Other responses

- `403`: The token does not have write access to the bucket the task refreshes, or, for a linked bucket, cannot manage buckets (`accessDenied`).
- `404`: Returned when the scheduled task does not exist in the token's project (`storage.scheduledTasks.notFound`).

---

[API](https://skmtc.dev/keboola/apis/keboola-storage-api.md) - [All operations](https://skmtc.dev/keboola/apis/keboola-storage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/keboola/apis/keboola-storage-api/revisions/34b5ceac0317?raw)
