How do I undo a channel deletion, a ban or a role change (/ctrlz)?
/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 action | What /ctrlz does |
|---|---|
| Deleted channel | Recreates a text channel with the old name. |
| Ban | Unbans the account. |
| Role given or removed | Removes the role that was given, or gives back the one that was removed. |
Using it
- Type
/ctrlzright after the mistake - 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: ModerationLast checked: 13 November 2026.