Skip to Content
HomeLink Hub
Properties

Delete a listing

DELETE
/api/v1/property/{id}

Access: Bearer token required. Also requires: Caller must be the listing's landlordId.

Soft-deletes a property. Only the listing's landlordId may call it. The record is kept so bookings, escrow transactions and reviews that reference it still resolve, but deletedAt is stamped and status is set to unlisted, which removes it from search, browse, GET /property/{id}, /property/me and link previews. There is no undo endpoint, and the code does not check for active bookings or escrows before deleting. Reviews and wishlist entries for the property are left in place.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Path Parameters

id*string

ObjectId of the property to delete.

Response Body

The property was soft-deleted. data is null.

application/json
  1. response
status*integer
success*boolean
message*string
data*unknown
Example Request
curl -X DELETE 'http://localhost:4000/api/v1/property/string'
Example Response
{  "status": 200,  "success": true,  "message": "Property deleted successfully",  "data": null}