---
title: "Force release a project lock"
method: DELETE
path: "/locks/{key}"
tags: ["Locks"]
---

# Force release a project lock

`DELETE /locks/{key}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/locks/{key}`
- Auth: HTTP bearer

Drops the lease whatever token holds it, for recovering a lock whose holder
died without releasing. Use `DELETE /locks/{key}/lease` for normal release.

This breaks mutual exclusion by itself: the previous holder keeps working
until its own renewal fails. Guard the protected resource with the lease's
`fencing_token`, which the next acquisition raises, so a write from the
displaced holder can be rejected. Succeeds when the lock is already absent.

## Path parameters

- `key` string, required

## Headers

- `X-Volcano-Request-Id` string, uuid, required

## Response `204`

Lock released

## Other responses

- `400`: Invalid lock key
- `401`: Missing or invalid credentials
- `403`: A non-service credential was supplied or the service key lacks `locks.manage`
- `429`: Project lock request limit exceeded
- `503`: Lock service unavailable

## Changes

- **2026-09-19** `3a6f365f3f35`: 5 breaking, 10 info
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - the response's body type changed from no type to `object` for status `429`
  - …11 more
- **2026-08-27** `bb44e98aba2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/locks/:key/delete.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
