DELETE /v1/properties/{id}

Delete property

Deletes a property and all associated data (rooms, reservations will be handled by CASCADE). Only company owners can delete properties.

Request

DELETE /v1/properties/{id}

Parameters

[ { "schema": { "type": "string" }, "required": true, "name": "id", "in": "path" } ]

Response

{ "200": { "description": "Property deleted successfully", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "message": { "type": "string" } }, "required": [ "success", "message" ] } } } }, "403": { "description": "Only company owners can delete properties" }, "404": { "description": "Property not found" }, "409": { "description": "Cannot delete property with active reservations" } }

View in Interactive API Reference