package com.tutego.insel.io.file;

import java.io.File;

public class DeleteTree
{
  public static void deleteTree( File path )
  {
    for ( File file : path.listFiles() )
    {
      if ( file.isDirectory() )
        deleteTree( file );
      else
        file.delete();
    }

    path.delete();
  }

  public static void main( String[] args )
  {
    deleteTree( new File("c:/ati/") );
  }
}
