public void deleteEntry(final String fsid) throws Exception {
        synchronized (FileStore.getFileStore()) {

            // Remove entry from Feed
            final Feed feed = getFeedDocument();
            updateFeedDocumentRemovingEntry(feed, fsid);

            final String entryFilePath = getEntryPath(fsid);
            FileStore.getFileStore().deleteFile(entryFilePath);

            final String entryMediaPath = getEntryMediaPath(fsid);
            if (entryMediaPath != null) {
                FileStore.getFileStore().deleteFile(entryMediaPath);
            }

            final String entryDirPath = getEntryDirPath(fsid);
            FileStore.getFileStore().deleteDirectory(entryDirPath);

            try {
                Thread.sleep(500L);
            } catch (final Exception ignored) {
            }
        }
    }
public void deleteEntry ( final String fsid ) throws Exception { synchronized ( FileStore . getFileStore ( ) ) { final Feed feed = getFeedDocument ( ) ; updateFeedDocumentRemovingEntry ( feed , fsid ) ; final String entryFilePath = getEntryPath ( fsid ) ; FileStore . getFileStore ( ) . deleteFile ( entryFilePath ) ; final String entryMediaPath = getEntryMediaPath ( fsid ) ; if ( entryMediaPath != null ) { FileStore . getFileStore ( ) . deleteFile ( entryMediaPath ) ; } final String entryDirPath = getEntryDirPath ( fsid ) ; FileStore . getFileStore ( ) . deleteDirectory ( entryDirPath ) ; try { Thread . sleep ( 500L ) ; } catch ( final Exception ignored ) { } } }
Delete an entry and any associated media file.

@param fsid Internal ID of entry
@throws java.lang.Exception On error