I have used
deluser without the parameter
$ deluser 'user'
Is there a way other than
rm -r /home/user to remove all files owned by a user now (since I have already executed deluser)?
You will have to manually find files, which probably was what
Should do it, although I've not tested the command with all the options at the same time.
EDIT: Numeric ID: The reason why I said you have to use a numeric ID is because, as you already deleted the user, his entry in
So, if you didn't remove his homedir, one of the easiest ways is to just query for the ID of the owner of that homedir:
If you like one-liners, you can even chain both commands:
(Of course you may prefer to run it first with no
Another option would be to re-add the user with
Suppose, for instance, that the user had username
gnu find has the options -nouser and -nogroup, look it up in
However, you might find more files - not only those who belonged to your deleted one.