209
destructive action
Delete, discard, revoke. It is not the primary color. Confirm if it cannot be undone. Offer undo if it can.
What is destructive action?
A destructive action removes or irreversibly changes. It is visually distinct, not the default focused button, and it says what will be destroyed. Confirmation dialogs are for the irreversible. Undo is better when you can build it.
Why does destructive action matter when vibe coding?
Models put Delete next to Save in the same style, or they confirm every trivial toggle. Name which actions are destructive and whether undo exists.
How do you do destructive action?
Destructive styling. Explicit label (“Delete project”). If irreversible, confirm with the object’s name. If reversible, undo instead of a modal. Do not use a confirm for harmless actions.
How do you ask a model for destructive action?
(Action) is destructive. Style it as such, not as the primary button. Label it with the object. If it cannot be undone, confirm with the name. If it can, provide undo and skip the confirm.
What goes wrong with destructive action?
A confirm dialog that does not name the object. “Are you sure?” is how people delete the wrong thing.