delete user home directory linux after delete the code example Example 1: delete directory linux rm -rf dir1 Example 2: delete user linux deluser *userToDelete*