The following code is to delete any file or directory and all of its contents. The deleted file or directory will be deleted permanently same as using SHIFT+DEL keys. Code:- import java.io.*; import java.nio.file.*; import java.util.*; public class Delete { Scanner scan = new Scanner(System.in); String pth; char ch; boolean empty; public void input() { try { System.out.printf("PATH: "); pth = scan.nextLine(); } catch (InputMismatchException e) { System.err.println("Error Occur!\n" + e.getMessage()); System.exit(0); ...