// Construct a File object for the backup created by editing
// this source file. The file probably already exists.
// My editor creates backups by putting ~ at the end of the name.
File bkup = new File("Delete.java~");
// Quick, now, delete it immediately:
bkup.delete();