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

# Release a project lock

`DELETE /locks/{key}/lease`

## Request

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

Releases a lease only when the supplied lock token still owns it.

## Path parameters

- `key` string, required

## Headers

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

## Response `204`

Lease released

## Other responses

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

## Changes

- **2026-09-19** `3a6f365f3f35`: 6 breaking, 12 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 `409`
  - …14 more
- **2026-08-27** `bb44e98aba2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/locks/:key/lease/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)
