[Tutor] How do I recursively remove the contents of a directory??

Suri Chitti SChitti at manh.com
Fri Oct 21 08:23:40 CEST 2005


If I have a directory /u01/qa/logs and the logs has a number of children
directories and I want to remove everything in logs and logs itself, is
there a single method or command to do that?  I want to avoid
recursively removing the files in each child directory and so on.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051021/0df9ff8d/attachment.htm


More information about the Tutor mailing list