Assumption #1: You have root access
Assumption #2: It is acceptable to delete the user.
If both assumptions are correct, then the command....
userdel -r loginname
..... will remove the users home directory.
If you want to keep the usersinformation but remove their home directories, perhaps you should first change their home directory to point to /tmp and then remove the home directories.
First get a list of the users home directories by looking in /etc/passwd. Then to change their home directories, use.....
usermod -d /tmp loginname
Don't use the -m switch, this will MOVE the contents to the /tmp directory.
Once this is complete, you can delete the home directories (you have the list from querring /etc/passwd) byusing ......
rm -rf /home/loginname*
Be careful here, if you have a user named joe and a user named joe2, and you want to remove joe2 but leave joe intact, that comman will clobber BOTH. A safer way that will require more typing is......
rm -rf /home/loginname/*
cd /home/loginname
rm .*
cd /home
rmdir /home/loginname
You will get an error message when you execute the command [rm .*] because you will not be able to rm the current or parent directory, but it will succeed in removing all the dot files (.sh_history, .profile, etc.) that are missed by ....
rm -rf /home/loginname/*
Good luck. I hope this works for you