Skip to Content
HomeLink Hub
Users & Profile

Delete the signed-in user's account

DELETE
/api/v1/user/account

Access: Bearer token required.

Soft-deletes the account: it is flagged isDeleted and isActive: false, and the stored refresh token is removed. Nothing is erased; the user's listings, bookings, reviews and other records are left as they are. No request body or password confirmation is required. If the account signed in with Apple and a refresh token was stored, the API asks Apple to revoke it; a failure there is logged and does not stop the deletion.

Afterwards, password and Apple sign-in are refused with 403 ("Your account has been deactivated. Please contact support.") and refreshing fails, but the email address stays reserved, so signing up again with it returns 409. Access tokens that were already issued are not revoked and keep authenticating until they expire, and the session list and push tokens are not cleared, so clients should unregister the push token first and discard their tokens immediately. The user cannot restore the account themselves.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Response Body

Account soft-deleted

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