---
title: "Delete a service"
method: DELETE
path: "/api/services/{serviceId}"
tags: ["Services"]
---

# Delete a service

`DELETE /api/services/{serviceId}`

## Request

- Base URL: `https://api.hairdora.com`
- URL: `https://api.hairdora.com/api/services/{serviceId}`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Deletes a service by id. Requires the `services:write` scope. Services owned by another organization respond 404.

## Path parameters

- `serviceId` string, required

## Response `200`

The deleted service id

- object
  - `_id` string
  - `salonId` string
  - `name` string
  - `price` union
    - number
    - string
  - `duration` integer
  - `lastEditTime` string, date-time

## Other responses

- `404`: Not found (or owned by another organization)
- `default`: Error response

---

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