---
title: "Delete a scheduled task and its run history"
method: DELETE
path: "/scheduled-tasks/{scheduledTaskId}"
tags: ["scheduled-tasks"]
---

# Delete a scheduled task and its run history

`DELETE /scheduled-tasks/{scheduledTaskId}`

## Request

- Base URL: `https://api.letsship.ai/v1`
- URL: `https://api.letsship.ai/v1/scheduled-tasks/{scheduledTaskId}`
- Auth: none declared

## Path parameters

- `scheduledTaskId` string, required

## Response `200`

Deleted

- DeleteScheduledTaskResponse
  - `ok` boolean, required
  - `id` string, required

## Other responses

- `403`: Role insufficient
- `404`: Not found

---

[API](https://skmtc.dev/letsship/apis/ship-api.md) · [All operations](https://skmtc.dev/letsship/apis/ship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/letsship/apis/ship-api/revisions/e6eac1bcadd4?raw)
