Skip to main content

Delete an account

DELETE 

/users/:userId

Required role: admin. Only an account or token with the admin role can call this operation.

Example request
curl --request DELETE \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/users/{userId}"

Removes the account, its sessions, its group memberships and its per-share permissions. Refuses the sole admin account.

Request​

Responses​

Account deleted.