Skip to main content
DELETE
Delete Facility

Delete Facility

Soft-delete a facility from your organization. The facility is marked as disabled (enabled=false) and associated supply contracts are deactivated.
Side Effects: Deleting a facility will deactivate all linked supply contracts and trigger a DELETE_FACILITY event for downstream processing.

Request

Path Parameters

uuid
required
The UUID of the facility to deleteExample: 550e8400-e29b-41d4-a716-446655440000

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Response

Returns HTTP 204 No Content on successful deletion. No response body.

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The user is not a member of the organization, or facility does not belong to the organization

404 Not Found

Cause: Facility not found

Best Practices

Consider archiving a facility instead of deleting if you want to preserve historical data:

List Facilities

Retrieve all facilities

Create Facility

Add a new facility