I have a Java program that runs on a Linux machine and it needs to delete million of files in a directory on Windows machine. Not all the files needs to be deleted--only the files that have "xxx" in name need to be deleted.
I used Samba API to connect to Windows from UNIX and fired delete command. It ran fine but took 12 hours to delete millions of files.
Can I delete the files faster? Any UNIX script from Java?