Confirm destructive actions

People make mistakes. If there's a destructive action, like deleting a record, then confirm it with users.

One approach is the delete conformation page, as in the famous goats app. There's a delete link on each edit page.

Delete link

Click it, and the app asks you to confirm. It shows you the thing you would delete, too, so you can check it's the right one.


It's easy to get into the habit of confirming everything, though. Another approach is to ask the user to type something about the thing to be deleted. That's what Github does. When you delete a repo, it asks you type the name of the repo as confirmation.

Where referenced