Sometimes we install programs or files and later want to delete them. For example installing a package using the following terminal: sudo apt-get install kubuntu-desktop. However upon using 'rm' in order to delete this, we get the following message:
xxxx@xxxx-laptop:~$ sudo rm kubuntu-desktop rm: can not remove 'kubuntu-desktop':...... In this guide we will show you how to resolve this issue.
sudo apt-get remove kubuntu-desktop
rm -r /home/username/xxx