Delete a unit
Permanently removes a unit and everything under it. Use deactivate instead when you only want it out of the way — deactivating leaves the record and its lease history intact.
Authorization
AuthorizationstringrequiredBearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.
Path parameters
unitIdstringrequiredSnowflake id of the unit, as a decimal string.
example: 1830472847398404098
Response
200 · The unit was deleted. The response has no body.
401 · The access token is missing, expired, or not for this company.
404 · No unit with that id, or it belongs to another company.
This deletes the leases and the listing too
Deleting a unit deletes every lease on it, the unit's marketing listing, and its unit-level settings. None of that is recoverable through the API.