---
title: "Delete a leave type"
method: DELETE
path: "/api/leavetypes/{id}"
tags: ["LeaveTypes"]
---

# Delete a leave type

`DELETE /api/leavetypes/{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/leavetypes/{id}`
- Auth: none declared

Deletes a leave type. Only admins can delete leave types. You cannot delete the last active leave type.

## Path parameters

- `id` integer, required

## Response `200`

The leave type was successfully deactivated

## Other responses

- `400`: Invalid request or validation error
- `403`: You don't have permission to delete this leave type
- `404`: The leave type was not found

---

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