code: public void deleteLogEntries(CmsRequestContext context, CmsLogFilter filter) throws CmsException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              checkRole(dbc, CmsRole.WORKPLACE_MANAGER);
              m_driverManager.deleteLogEntries(dbc, filter);
          } catch (Exception e) {
              dbc.report(null, Messages.get().container(Messages.ERR_DELETE_LOG_0), e);
          } finally {
              dbc.clear();
          }
      }
docs: Deletes all log entries matching the given filter.<p>
  
  @param context the current user context
  @param filter the filter to use for deletion
  
  @throws CmsException if something goes wrong
  
  @see #getLogEntries(CmsRequestContext, CmsLogFilter)
  @see CmsObject#deleteLogEntries(CmsLogFilter)