---
title: "Delete a sub-group"
method: DELETE
path: "/admin/sub-groups/{id}"
tags: ["Task Sub-Groups"]
---

# Delete a sub-group

`DELETE /admin/sub-groups/{id}`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/admin/sub-groups/{id}`
- Auth: HTTP bearer

Soft delete a task sub-group (only if it has no templates)

## Path parameters

- `id` string, uuid, required

## Response `204`

Sub-group deleted successfully

## Other responses

- `401`: Unauthorized
- `404`: Sub-group not found
- `409`: Cannot delete sub-group with templates

---

[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)
