@Override
	public synchronized boolean delete() {

		if (raf == null || readOnly) {
			return false;
		}

		boolean success = false;
		try {
			try {
				raf.close();
			}
			catch (IOException e) {
				// ignored
			}
			raf = null;
		}
		finally {
			success = file.delete();
		}
		return success;
	}
True if buffer file is closed
@return true if buffer file is closed
Ghidra/Framework/DB/src/main/java/db/buffers/LocalBufferFile.java