docs: protected void removeOldExport(String exportPath) {
  
          File output = new File(exportPath);
          if (output.exists()) {
              // the output already exists
              if (output.isDirectory()) {
                  // purge the complete directory
                  CmsFileUtil.purgeDirectory(output);
              } else {
                  // remove the existing file
                  if (m_isExportAsFiles) {
                      // in case we write to a file we can just overwrite,
                      // but for a folder we must remove an existing file
                      output.delete();
                  }
              }
          }
      }