How to remove a directory?

Hi All,

If I try to remove a directory but I get following error:
rmdir: 0653-611 Directory name.ft is not empty.

Yes, it isn't empty but should I access the directory and delete the files one after another?
Is there perhaps a way delete a directory even if contains files?
Or if I access the directory is there a way to delete the files all at once?
attila01Asked:
Who is Participating?
 
LotokCommented:
try
deltree "c:\etc\etc"

replacing "c:\etc\etc" with the desired directory path.
0
 
kmotawehCommented:
one of the unjustified ways to do that is to delete it over the network from another pc , it works to me and it hasn't failed a time
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
LotokCommented:
ignore last post, thought you were working in DOS. Half asleep :)
0
 
MilleniumaireConnect With a Mentor Commented:
Try:

rm -R <dirname>
0
 
omarfaridConnect With a Mentor Commented:
Please use

rm -Rf <dirname>

to remove dir and subdir, -f to avoid confirming removing read-only files / dirs
0
 
MilleniumaireCommented:
Hi, just wondered if you had managed to easily remove your directory tree.
0
 
attila01Author Commented:
Hi,

Yes, I succeeded to delete the directory.
0
All Courses

From novice to tech pro — start learning today.