Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying this:

rm -fr /app/foo

But getting error message:

rm: cannot remove `/app/foo': Is a directory

What I'm doing wrong?

share|improve this question
    
Try rmdir /app/foo – Ashtray Sep 23 '13 at 8:29
    
@Ashtray, 'rmdir: failed to remove `/app/foo': No such file or directory'. Weirdo. – Steve Kero Sep 23 '13 at 8:31
    
Do you remember how you created it? Maybe the slashes are actual special characters in filename? – Ashtray Sep 23 '13 at 8:36
    
@Ashtray, it's created by a build script (written not by me). How can I check that? – Steve Kero Sep 23 '13 at 8:37
1  
Does that directory happen to be a mount point for something? – slhck Sep 23 '13 at 9:08
up vote 1 down vote accepted

This error hints at the directory being a mount point.

Unmount whatever is there:

umount /app/foo

Then, try to remove the directory again.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .