---
title: "Delete department"
method: POST
path: "/api/departments/delete/{id}"
tags: ["Departments"]
---

# Delete department

`POST /api/departments/delete/{id}`

## Request

- Base URL: `https://app.timetastic.co.uk` (the document declares no server; this is the origin it was published from)
- URL: `https://app.timetastic.co.uk/api/departments/delete/{id}`
- Auth: none declared

Delete a department from Timetastic. The department must be empty - edit any users with this department ID to allow the department to be deleted.

## Path parameters

- `id` integer, required

## Response `200`

If the department was successfully deleted

## Other responses

- `400`: If the department couldn't be deleted (usually because it contains users)

---

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