you have done many erros in it.. 1..>if the file will writeprotected then it will not delete by this programme.. 2..>and ofcurese it will delete only single directory or file if directory content subdirectoris then it will not delete it ..as u knw 3>>>look at my code it will all subdirectes n files but yaa there is an error in code find it actually it is not deleting files find n tell me why.. .................................. import java.io.*; import java.util.*;
public class DeleteAny { public static void main(String args[])throws IOException { File f[]=new File[args.length];