Deactivate own user
Deactivates the user's account. See also the administrative endpoint for
deactivating another user.
This endpoint is primarily useful to Zulip clients providing a user settings UI.
# Pass the path to your zuliprc file here.
client = zulip.Client(config_file="~/zuliprc")
# Deactivate the account of the current user/bot that requests.
result = client.call_endpoint(
curl -sSX DELETE https://chat.biophysics.se/api/v1/users/me \
This endpoint does not accept any parameters.
Changes: As of Zulip 7.0 (feature level 167), if any
parameters sent in the request are not supported by this
endpoint, a successful JSON response will include an
A typical successful JSON response may look like:
An example JSON error response when attempting to deactivate the only
organization owner in an organization:
"msg": "Cannot deactivate the only organization owner",