Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Reminds me of our own quest to stop users from deleting their entire projects by accident in our product.

1st iteration: delete button with a confirmation box (standard stuff). Users click through the box in autopilot mode and still delete their entire projects.

2nd iteration: someone came up with an idea: confirmation box + an additional checkbox (if it isn't checked, the delete button is disabled). Users still manage to delete projects by accident. When we asked them how that happened (we've set up so many hurdles!), the user says, just like in the article, that they thought they were deleting a different (test) project.

3rd iteration: I suggested showing the number of objects in the project (just like suggested in the article) so that the user knew they aren't deleting a test project.

I moved on to a different project since, but the saga probably continues.



Same here. I finally brought accidentally deleting stuff down to zero by having them type the number they get to lose:

"You have 55,231 GitHub stars. Please type 55231 if you want to delete them all."

But I guess, if you delete repos often enough, this will also become muscle memory.

Edit: Just saw the other comment here suggesting the same: https://news.ycombinator.com/item?id=31033996


So, for projects with 100+ stars, add a wait period of 60 seconds until the delete button can be clicked _after_ the number is typed in. That should allow most users on autopilot to snap out of it, or make drunk users switch to a different tab and forget about it.


almost all of my projects have < 5 stars, typing "0" half the time is more dangerous than typing my_name/my_repo.


Better to flag it as archived. This way they can unarchive if need be.


just do soft deletes that can be undone... seems so easy..


GitHub also makes you type out the project name and that still did not help here.

I guess users will always be able to fuck things up.

Best solution would be to offer undos but then people will complain that deleting things does not actually delete. You are keeping data to yourself! Start citing privacy issues etc.

There is no winning here.


Damn, would be interesting to know what the effects of the third iteration is.

Would validate/invalidate the authors ui suggestions.


I've seen some software, can't remember which, that forces you to type the name of the project you're deleting to confirm. That's made me think twice.


GitHub does that


Considering the context I'm amazed I didn't realize that was where I'd seen it.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: