/**
* @param args
*/ public static void main(String[] args) {
File file2Delete = new File("C:\\abc.txt");
//true if and only if the file or directory is successfully deleted; false otherwise
System.out.println("File deleted successfully : " + file2Delete.delete());
}