Accidentally deleting important data can be a disaster for your users and your support team. A poorly placed or unclear destructive action can result in irreversible mistakes, lost data, and frustrated users.
These actions need to be carefully designed with strong visual cues, clear labels, and proper safeguards.
Delete buttons should always stand out with a red color. This is a well-established visual convention that immediately signals danger to users.
❌ Figure: Bad example - Wrong color for a delete button
✅ Figure: Good example - Red is the right color for a delete button
Note: If red is your branding primary color, you may use red for positive or neutral actions, as long as:
Icons make buttons faster to recognize and reduce ambiguity. A trash can icon next to the label reinforces the nature of the action.
🗑️) or appropriate destructive icon🧹) is used for “clear all” or “clean up", not "delete". Cross icon (❌) means “cancel” or "wrong", not "delete")❌ Figure: Bad example - Cross icon usually means "Cancel" and should be avoided for permanent deletion. The button is also missing a text label
✅ Figure: Good example - Button has a Trash/Bin icon positioned to the left of the text labe
Placing a delete button next to a primary action (e.g. "Save" or "Confirm") is dangerous. Users may misclick due to proximity.
❌ Figure: Bad example - "Delete" and "Save" are too close together, which can lead to accidental clicks
✅ Figure: Good example - "Delete" button in red, with the right icon, and visually isolated from safe actions
Not every destructive action needs a popup, but if the data is important or irreversible, you should ask the user to confirm.
Use confirmations when:
✅ Figure: Good example - Confirming a deletion
Tip: Avoid overusing confirmations as they lead to alert fatigue.
Sometimes you might have a UI with limited space that doesn’t allow text labels.
For icon-only delete buttons (for example, a red trash icon in a table row), always provide a tooltip on hover or focus.
✅ Figure: Good example - Tooltip gives clarity to an icon-only delete button
Don't rely solely on color to convey meaning — red may be hard to distinguish for users with color blindness.
aria-label="Delete project" or similar| Element | Best practice |
| Color | Use red for delete buttons |
| Label | Always include a text label (e.g. "Delete", "Remove") |
| Icon | Use a trash can or similar, to the left of label |
| Placement | Isolate from primary/positive actions |
| Confirmation | Use when deletion is permanent or high-risk |
| Accessibility | Don't rely on color; support keyboard and screen readers |
For more guidance on destructive actions in UI design:
Check out how SSW manages UI bugs across our many products and teams using YakShaver. Smarter workflows. Fewer distractions.