Delete a message
This endpoint is only available to organization administrators.
Permanently delete a message.
This API corresponds to the
delete a message completely feature documented in
the Zulip Help Center.
# The user for this zuliprc file must be an organization administrator
client = zulip.Client(config_file="~/zuliprc-admin")
# Delete the message with ID "message_id"
result = client.delete_message(message_id)
curl -sSX DELETE https://secure-compilation.zulipchat.com/api/v1/messages/43 \
message_id integer required in path
A typical successful JSON response may look like:
An example JSON response for when the specified message does not exist:
"msg": "Invalid message(s)",
An example JSON response for when the user making the query does not
have permission to delete the message:
"msg": "You don't have permission to delete this message",