Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.