* @see org.olat.repository.handlers.RepositoryHandler#cleanupOnDelete(org.olat.resource.OLATResourceable,
* org.olat.core.gui.UserRequest,
* org.olat.core.gui.control.WindowControl)
*/
public boolean cleanupOnDelete(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
CoordinatorManager.getCoordinator().getEventBus().fireEventToListenersOf(new OLATResourceableJustBeforeDeletedEvent(res), res);
//delete also notifications
NotificationsManager.getInstance().deletePublishersOf(res);
FileResourceManager.getInstance().deleteFileResource(res);
return true;
}