---
title: "Delete an existing shift"
method: DELETE
path: "/management/v2/shifts/{id}"
tags: ["Shifts"]
---

# Delete an existing shift

`DELETE /management/v2/shifts/{id}`

## Request

- Base URL: `https://your-subdomain.deputy.deputy.com/api`
- URL: `https://your-subdomain.deputy.deputy.com/api/management/v2/shifts/{id}`
- Auth: API key in header `OAuth`

Delete an existing shift.

## Path parameters

- `id` integer, required

## Response `200`

A successful response.

- ScheduleShiftDeleteResponse: Response after deleting a shift. Synchronous API - shift deletion completes immediately. Cost recalculation for affected shifts runs asynchronously in the background. If cost recalculation is triggered, metadata.operation contains the operation ID for polling status.
  - `success` boolean
  - `metadata` ScheduleShiftDeleteResponseMetadata
    - `operation` ScheduleShiftOperation: Operation tracking information for asynchronous APIs.
      - `operationId` string: Unique identifier for the operation. Use this to poll /operations/v2/operations/{id} for status updates.
      - `locks` OperationLock[]: Virtual Locks held by this operation that prevent conflicting operations.
        - `kind` string
        - `ids` object

---

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