Overview
This endpoint allows spot owners to permanently delete their parking spot from the system.
This action is irreversible. All associated availabilities and claims will also be deleted.
Authentication
Path Parameters
Unique identifier of the parking spot to delete
Response
ID of the deleted parking spot
Example Request
curl -X DELETE "https://harbor-parking.vercel.app/api/parking-spots/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json"
Example Response
{
"message": "Parking spot deleted successfully",
"deleted_spot_id": "123e4567-e89b-12d3-a456-426614174000"
}
Error Responses
{
"error": "You can only delete your own parking spots"
}