code: public void deleteHistoricalVersions(int versionsToKeep, int versionsDeleted, long timeDeleted) throws Exception {
  
          m_cms.deleteHistoricalVersions(
              versionsToKeep,
              versionsDeleted,
              timeDeleted,
              new CmsShellReport(m_cms.getRequestContext().getLocale()));
      }
docs: Deletes the versions from the history tables that are older then the given number of versions.<p>
  
  @param versionsToKeep number of versions to keep, is ignored if negative
  @param versionsDeleted number of versions to keep for deleted resources, is ignored if negative
  @param timeDeleted deleted resources older than this will also be deleted, is ignored if negative
  
  @throws Exception if something goes wrong
  
  @see CmsObject#deleteHistoricalVersions( int, int, long, I_CmsReport)