---
title: "Delete a department"
method: DELETE
path: "/v1/departments/{department_uuid}"
tags: ["Departments"]
---

# Delete a department

`DELETE /v1/departments/{department_uuid}`

## Request

- Base URL: `https://api.gusto-demo.com`
- URL: `https://api.gusto-demo.com/v1/departments/{department_uuid}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/gusto/apis/gusto-api/docs/v1/departments/:department_uuid/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a department. You cannot delete a department until all employees and contractors have been removed.

scope: `departments:write`

## Path parameters

- `department_uuid` string, required

## Headers

- `X-Gusto-API-Version` '2026-06-15'

## Response `204`

No Content

## Other responses

- `404`: Not Found The requested resource does not exist. Make sure the provided UUID is valid.
- `422`: Unprocessable Entity This may happen when the body of your request contains errors such as `invalid_attribute_value`, or the request fails due to an `invalid_operation`. See the [Errors Categories](https://docs.gusto.com/embedded-payroll/docs/error-categories) guide for more details.

---

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