I have some folders and files that do not get deleted in the trash folder.
I logged in as root using
rm -rf ~/.local/share/Trash/files/*
but nothing happens.
Can anyone help with a step-by-step solution please?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
root's Trash directory?
I assume you want to empty your user's trash, not root's. If you "sudo su" then "~" will (probably) expand to "/root", which is unlikely to be what you meant.
Why are you using sudo to do this anyway?
If you need to be root (for some reason) to delete these files, try:
sudo rm /home/<username>/.local/share/Trash/files/*
 whether it does or not depends on how much of the environment gets inherited when sudo is run, but I think by default it does