> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Facility

> Deletes a Facility. Returns 400 if there are patients associated with the Facility.

## Path Params

<ParamField path="id" type="string" required>
  The ID of your Facility.
</ParamField>

## Response

`204` - no content, upon successful delete.

<ResponseExample>
  ```javascript Metriport SDK theme={null}
  import { MetriportMedicalApi } from "@metriport/api-sdk";

  const metriport = new MetriportMedicalApi("YOUR_API_KEY");

  const facilityId = "018a80c4-292a-7486-a1234-9uiu76yhe234";
  await metriport.deleteFacility(facilityId);
  ```
</ResponseExample>
