The following command will kill all processes belong to a single user on Linux.

pkill -u username

Credit: Linux – Kill all processes for a user