---
title: "Delete a scheduled task"
method: DELETE
path: "/tasks/scheduled/{id}"
tags: ["Scheduled Tasks"]
---

# Delete a scheduled task

`DELETE /tasks/scheduled/{id}`

Use when removing a scheduled task from the active roster. Archives the task and removes it from the scheduler (soft delete).

## Path parameters

- `id` string, required

## Response `204`

Scheduled task archived successfully

## Other responses

- `400` — Task already archived
- `404` — Scheduled task not found
- `500` — Failed to archive task

## Changes

- **2026-05-18** `8ec2edea6b20` — 6 warning
  - removed the optional property `details` from the response with the `400` status
  - removed the optional property `details` from the response with the `404` status
  - removed the optional property `details` from the response with the `500` status
  - added the new `too_many_requests` enum value to the `code` response property for the response status `400`
  - …2 more
- **2026-04-06** `95af41a12111` — 6 warning, 12 info
  - removed the optional property `error` from the response with the `400` status
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `error` from the response with the `500` status
  - removed the optional property `success` from the response with the `400` status
  - …14 more

[Change history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/tasks/scheduled/:id/delete.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/2a40f94de722/schema)
