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

# Delete a task

`DELETE /cohorts/{cohortId}/tasks/{id}`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/tasks/{id}`
- Auth: HTTP bearer

Soft delete a task

## Path parameters

- `cohortId` string, uuid, required
- `id` string, uuid, required

## Response `204`

Task deleted successfully

## Other responses

- `401`: Unauthorized
- `404`: Task or cohort not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
