JOURNAL / PRODUCT DESIGN / UX

Undo is a promise; "Are you sure?" is a speed bump

Confirmation dialogs ask people to predict their mistakes. Undo lets them notice them. When each one fits, and what undo demands from your backend.

· 5 MIN READ · Blanche Agency
Engraving-style drawing of a wooden pencil lying diagonally, its worn eraser end in front with a few eraser crumbs beside it.
Original illustration: an eraser lets you fix the mistake after you see it. · Blanche Agency · aiBLANCHE / 2026

INTRODUCTION

Every product eventually gets a delete button, and with it a small meeting about safety. Someone suggests a dialog: “Are you sure you want to delete this?” It feels responsible. It costs an afternoon. And for most deletions it is the wrong tool.

A confirmation dialog asks people to predict their mistake before they make it. Undo lets them notice the mistake after it happens, which is when people actually notice mistakes. The choice between the two is not a matter of taste. It depends on how often the action happens, whether it can really be reversed, and what your backend is willing to promise.

Why the dialog stops working

A dialog that appears every time becomes part of the gesture. People learn that delete means “click, then click the button on the right”, and the second click happens before the question is read. The protection is strongest the first few times and weakest exactly when a habit has formed, which is when slips happen.

Apple’s Human Interface Guidelines put the rule plainly: avoid displaying alerts for common, undoable actions, even when they are destructive, and keep alerts for uncommon destructive actions that cannot be undone (Apple, Alerts). People delete an email intending to discard it, and they can undo it. Asking them to confirm adds friction without adding safety.

Undo is a backend decision first

The interface part of undo is small: a message that says what happened and a button to reverse it. The hard part is making reversal true. There are three common ways to do it, each with a cost.

  • Soft delete. The record is marked deleted and hidden, then purged later. Undo clears the mark. It is simple, but every query now has to respect the mark, and you need a clear rule for when data is really gone, which matters for privacy requests.

  • Delayed commit. The interface hides the item immediately but the server action waits a few seconds. Undo cancels the pending action. Nothing is stored twice, but if the tab closes or the connection drops, you must decide whether the action still happens.

  • Restore from trash. Deleted items move to a recoverable place for a set period. Undo is immediate; recovery remains possible later. It is the most forgiving model and the most visible one, because people need to know where the trash is and how long it keeps things.

All three share a limit: undo can only reverse what your system controls. If deleting a project also sent a cancellation email, released a domain or refunded a payment, the button cannot recall those. When an action reaches outside your product, undo becomes a promise you cannot keep, and a confirmation is the honest choice. Our earlier piece on retry buttons and idempotency covers the same problem from the other direction: any button that touches the outside world is a contract with your backend.

Don’t make undo a race

The usual undo message is a toast that disappears after a few seconds. That timer is a design decision with accessibility consequences. WCAG’s Timing Adjustable criterion asks that time limits set by content can be turned off, adjusted or extended, with exceptions for limits that are essential or longer than twenty hours (W3C, Understanding SC 2.2.1). A screen reader user, or anyone who reads slowly, may not reach a vanishing button in time.

A durable fallback solves most of this. If the toast leaves but the item stays recoverable from a trash or history view for days, the toast is a shortcut rather than the only way back.

The case for the dialog

The serious counterargument is cost and clarity. Undo needs data modelling, background purges, recovery screens and tests for edge cases. A confirmation is a few lines of interface. For an early team shipping a feature used by a handful of administrators, a well-written confirmation may be the responsible choice.

And some actions deserve a pause precisely because they are rare and heavy: deleting a whole workspace, removing a team member’s access, closing an account. Here the dialog should earn its interruption. Name the thing being deleted, state the consequence, and label the button with the action, not “OK”. For the heaviest cases, asking people to type the name of what they are deleting turns a reflex into a decision.

A working rule

Hypothetical example. A project tool lets people delete tasks, archive projects and delete workspaces. Tasks are deleted dozens of times a day: give them undo, backed by a thirty-day trash. Archiving a project is reversible by design: no dialog, a toast and a clear “Archived” view. Deleting a workspace removes billing, members and integrations: confirm it, with the workspace name typed in, and say exactly what will stop working.

Before your next delete button, sort the action into one of three questions. Is it frequent and fully reversible inside your system? Use undo. Is it rare and reversible? Undo plus a visible recovery place. Does it reach outside your system or destroy something you cannot rebuild? Confirm it, carefully, and accept the friction as the price of honesty.

Sources checked on 12 November 2026: Apple Human Interface Guidelines, Alerts; W3C, Understanding Success Criterion 2.2.1 Timing Adjustable (WCAG 2.2).

KEEP THINKING

Keep reading.

More ideas on building better brands and digital products.

Product design

A language switcher is not a flag

Web platform

JPEG XL is in Chrome now. Convert less than you think

View all articles