private static boolean deleteLockFile(File lockFile) {

		if (!lockFile.exists()) {
			return true;
		}

		boolean deleted = lockFile.delete();

		// give the system some time to release resources if the file was not
		// deleted
		if (!deleted) {
			Msg.warn(ProjectTestUtils.class, "deleteLockFile(): " + "unable to delete file " +
				lockFile.getAbsolutePath() + "- trying again.");
			for (int i = 0; i < 6; i++) {
				AbstractGuiTest.waitForSwing();
				try {
					Thread.sleep(1000);
				}
				catch (Exception e) {
					// don't care, we tried
				}
			}
			deleted = lockFile.delete();
		}

		File secondLockFile = new File(lockFile.getAbsolutePath() + "~");
		if (secondLockFile.exists()) {
			deleted = secondLockFile.delete();
		}

		return deleted;
	}
Remove entire project.  Note: this will not remove the parent <code>directory</code> of
the project.

@param directory directory of the project.
@param name The name of the project to delete
@return True if the project was deleted.
Ghidra/Features/Base/src/main/java/ghidra/test/ProjectTestUtils.java