Delete all records

I know I can have a user delete a record at a time…is there a way (script maybe?) that allows them to delete all records associated with their email address?

Probably would need some sort of script. Sorry, I don’t have an example, but I found this article.