delete user refactor