public synchronized boolean delete(URI uri) { FileEntryImpl fileEntry = (FileEntryImpl) files.remove(uri); if (fileEntry == null) { return false; } else { return fileEntry.getFile().delete(); }
public boolean delete(File file) { URI uri = file.toURI(); return delete(uri);
    public synchronized boolean delete(URI uri) {        FileEntryImpl fileEntry = (FileEntryImpl) files.remove(uri);        if (fileEntry == null) {            return false;        } else {            return fileEntry.getFile().delete();        }    }