is this any different from `return confirm("Are you sure you want to delete?");`? and if not, do you need this function?