There are a few ways to delete files in Java. The easiest way is to use the File Manager. To use the File Manager, open the Java application and click on the File Manager icon. From the File Manager, select the file you want to delete and click on the Delete button.