How do I undo a channel deletion, a ban or a role change (/ctrlz)?

CommandsUndoDiscord audit

/ctrlz undoes the last critical action visible in Discord’s audit log. It is reserved for administrators (Discord Administrator permission).

What it can undo

Recent actionWhat /ctrlz does
Deleted channelRecreates a text channel with the old name.
BanUnbans the account.
Role given or removedRemoves the role that was given, or gives back the one that was removed.

Using it

  1. Type /ctrlz right after the mistake
  2. Read the reply It says what was undone.

The limits

  • 5 minutes: beyond that, the bot replies that the undo must be done manually.
  • It only looks at the last 5 entries of the audit log, and at the first action it knows how to undo.
  • A recreated channel is a new text channel: custom permissions will have to be reconfigured, and old messages do not come back.
  • The bot needs to be able to read the server’s audit log (View Audit Log).
One attempt at a time If the last action is not in the list above, the command replies “No recent action can be undone automatically”.

Still stuck?

Contact support with the title of this article, the step where you are stuck and what you see on screen.

Contact support More articles: Moderation

Last checked: 13 November 2026.