0

I installed "darling" and now want to delete it, but this shows up:

rm: cannot remove 'darling': Is a directory

When I ran rmdir it says:

rmdir: failed to remove 'darling/': Directory not empty

Even ran sudo umount darling, still no luck.

sotirov
  • 3,169
  • 1
    Please give more information. Which Ubuntu version are you running? What is "darling" and how did you install it? What was the exact command you tried to remove it with? Where did you get that command from? – Tilman Oct 23 '23 at 16:32
  • 1
    @sotirov: Your edit makes it appear as if the error messages were quoted literally, but they obviously aren't. – Tilman Oct 23 '23 at 17:22
  • @Tilman you are correct. Fixed – sotirov Oct 23 '23 at 18:05
  • I’ve put an answer below re how to remove directories - but it looks like perhaps you’re actually trying to uninstall darling. That’s a very different matter - and how you do that depends on how you installed in the first place. If that’s what you’re trying to do, please edit your question with the details (of your Ubuntu version, how you installed), or post a new question specifically about uninstalling it. – Will Oct 23 '23 at 20:31
  • Which "darling" is your darling? Is it this Darling ... If yes, then please add the output of dpkg -l darling; dpkg -s darling; dpkg -S darling and probably tell us a bit on how you installed it. – Raffa Oct 24 '23 at 07:32

1 Answers1

2

rmdir will only remove empty directories.

rm without options will only remove files

rm -d behaves like rmdir

rm -r will remove directories and any contents - be careful, especially if you use wildcards!

Will
  • 2,292