---
title: "Release Lease"
method: DELETE
path: "/apps/{app_name}/machines/{machine_id}/lease"
tags: ["Machines"]
---

# Release Lease

`DELETE /apps/{app_name}/machines/{machine_id}/lease`

Release the lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine.

## Path parameters

- `app_name` string, required
- `machine_id` string, required

## Headers

- `fly-machine-lease-nonce` string, required

## Response `200`

OK

---

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