--- title: Destructive actions slug: actions prefix: ACT order: 7 summary: Deleting, cancelling and other actions people can't easily take back. --- Mistakes happen. Good products make them cheap to undo, and hard to make when they can't be undone. ## ACT-01: Make destructive actions look different and keep them apart - **Level:** MUST - **Why:** If "Delete" looks like "Save" and sits right next to it, someone will eventually click the wrong one. - **Do:** Use a distinct destructive style, and place destructive actions away from primary ones, for example in a menu or a "Danger zone" section. - **Don't:** Put "Delete" and "Save" side by side in the same style. - **Check:** visual - **Test:** Every destructive action has a distinct style and isn't next to the primary action. ## ACT-02: Offer undo where you can, confirm where you can't - **Level:** MUST - **Why:** Confirming everything trains people to click "Yes" without reading. Undo is faster and safer. - **Do:** For reversible actions (archive, move to trash), act immediately and show an "Undo" toast. For irreversible actions, confirm first and name the object and the consequence. - **Don't:** Ask "Are you sure?" for every action, or delete permanently with no warning. - **Check:** walkthrough - **Test:** Trigger each destructive action. Reversible ones offer undo, and irreversible ones explain what will be lost. ## ACT-03: Confirmation buttons name the action - **Level:** MUST - **Why:** "Yes" and "No" force people to re-read the question. "Delete project" doesn't. - **Do:** Label the buttons "Delete project" and "Cancel". - **Don't:** Label them "Yes" and "No", or "OK" and "Cancel". - **Check:** visual - **Test:** No confirmation dialog uses Yes/No or OK as its action labels. ## ACT-04: Add friction in proportion to the stakes - **Level:** SHOULD - **Why:** Deleting a whole account or repository deserves a deliberate step that a routine action doesn't. - **Do:** For high-stakes, irreversible actions, ask people to type the object's name to confirm. - **Don't:** Use the same one-click confirm for deleting a comment and deleting an account. - **Check:** walkthrough - **Test:** Account, workspace and bulk deletes require typing a name or a similar deliberate step.