Updated user deletion function