public synchronized void remove( final String id )
    {
        final Archiver task = tasks.remove( id );
        if ( task != null )
        {
            task.stop();
        }
    }
Stops and removes an existing task. No-op when the provided task is not managed by this manager.

@param id The identifier of task to be added. Cannot be null.
xmppserver/src/main/java/org/jivesoftware/openfire/archive/ArchiveManager.java