---
title: "Delete By Id"
method: DELETE
path: "/api/availabilities/by-id/{availability_id}"
tags: ["availability-legacy"]
---

# Delete By Id

`DELETE /api/availabilities/by-id/{availability_id}`

## Path parameters

- `availability_id` string, required

## Response `200`

Successful Response

- AvailabilityDeleteData — Delete payload metadata.
  - `deleted` integer, required — Deleted rows count
  - `operator_alert_sync` AvailabilityOperatorAlertSyncResponse
    - `action` string, nullable — Alert sync action: closed, created, or promoted
    - `alert_id` string, nullable — Operator alert UUID affected by the availability change
    - `alert_type` string, nullable — Operator alert type affected by the availability change
    - `closed` boolean — True when the availability change closed the alert
    - `invalidate_all` boolean — True when the frontend must invalidate all local route data
    - `site_restricted` boolean — True when the frontend must switch to restricted site mode
    - `message` string, nullable — Human-readable alert sync outcome

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corabea/corabea-api/revisions/13c1bce1bdc4/schema)
