# Delete a shift (/docs/api-reference/shifts/ShiftsController_deleteShift)

`DELETE /api/factories/{factoryId}/shifts/{id}`

Base URL: https://api.xentr.ai

Authentication: bearer token (`Authorization: Bearer <token>`).

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `factoryId` | path | yes | string | Factory ID |
| `id` | path | yes | string | Shift ID |

## Responses

### 200: Deleted shift