Sub topic 11
Confirmations and Destructive Actions
Assume you know common interface elements such as buttons, forms, and dialogs. This chapter focuses on decisions that can remove data, change permissions, spend money, or affect other people.
Decide whether a confirmation is needed
A confirmation interrupts the user's task. Use one when the action is difficult to reverse, has a serious consequence, or affects someone besides the person clicking. Do not confirm every routine action. Too many dialogs train people to dismiss them without reading.
First consider whether the product can offer a safer pattern:
- Use Undo when the action is easy to reverse and the user can continue working.
- Use an automatic draft or version history when recovery is useful.
- Use a confirmation when the consequence is important and recovery is limited.
- Require extra verification for sensitive actions such as changing a payment method or deleting an account.
The goal is informed choice, not friction for its own sake.
Name the object and consequence
A useful confirmation answers three questions:
- What object will change?
- What exactly will happen?
- Can the user recover?
Avoid generic text such as “Are you sure?” The user may have forgotten which action opened the dialog, especially if several items were visible.
| Weak confirmation | Clear confirmation |
|---|---|
| Are you sure? | Delete “Q3 report”? |
| This action cannot be undone. | This removes the file for everyone on the team. You can restore it from Trash for 30 days. |
| Yes / No | Cancel / Delete file |
The title should identify the action or object. The body should state the consequence in plain language. If recovery exists, explain where and for how long. Do not claim that an action cannot be undone if the product actually provides recovery.
Label buttons by action
Button labels should name the result, not the user's agreement.
- Use Cancel for the safe exit.
- Use Delete file, Remove member, or Send payment for the committing action.
- Avoid OK, Yes, and Continue when they hide the result.
- Keep the destructive action visually distinct, but do not rely on color alone.
Place focus in a predictable location, usually on Cancel for a destructive dialog. Support keyboard access, a clear dialog title, and a way to close the dialog without committing the action. Make sure assistive technology announces the title, consequence, and available buttons together.
Handle high-risk actions differently
For especially serious actions, ask the user to type a known value, reauthenticate, or complete another deliberate step. Use this sparingly. Typing DELETE may reduce accidental clicks, but it also adds work for users who intentionally perform the action.
Check the wording across states:
- Before: “Delete project”
- Confirmation: “Delete ‘Northwind redesign’?”
- Progress: “Deleting project…”
- Success: “Project deleted. Undo”
- Failure: “The project could not be deleted. Try again.”
The same terminology should appear in the button, dialog, status message, and help content. Test the copy with realistic scenarios, including keyboard use, narrow screens, translated text, and users who return after an error.
Exercise
Rewrite this confirmation: “Are you sure you want to remove the user? Yes / No.” The removal affects the whole team, but an administrator can restore the user for seven days.
Show answer
Title: “Remove Maya Chen from the team?” Body: “Maya will lose access to the team. An administrator can restore access within seven days.” Buttons: “Cancel” and “Remove member”.