---
title: "Bulk delete shifts (asynchronous)"
method: POST
path: "/management/v2/shifts:bulkDelete"
tags: ["Shifts"]
---

# Bulk delete shifts (asynchronous)

`POST /management/v2/shifts:bulkDelete`

## Request

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

Deletes multiple shifts in bulk. This is an asynchronous API that returns immediately with an operation ID in the response metadata.operation.id field. Use the operation ID to poll the /operations/v2/operations/{id} endpoint to check completion status. The operation processes deletions in the background. Failed deletions will be reported in the operation status. Optional compliance overrides can be provided to bypass normal validation rules.

## Response `200`

A successful response.

- ScheduleShiftBulkDeleteResponse: Response after initiating bulk deletion. Asynchronous API - returns immediately with operation ID.
  - `success` boolean: Indicates whether the bulk delete request was accepted.
  - `metadata` ScheduleShiftBulkDeleteResponseMetadata
    - `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)
