docs: function cleanupOldFiles(generator) {
      if (generator.isJhipsterVersionLessThan('3.2.0')) {
          // removeFile and removeFolder methods should be called here for files and folders to cleanup
          generator.removeFile(`${ANGULAR_DIR}components/form/uib-pager.config.js`);
          generator.removeFile(`${ANGULAR_DIR}components/form/uib-pagination.config.js`);
      }
      if (generator.isJhipsterVersionLessThan('5.0.0')) {
          generator.removeFile(`${ANGULAR_DIR}/app.route.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/auth/account.service.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/auth/auth-jwt.service.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/auth/auth-session.service.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/auth/csrf.service.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/auth/state-storage.service.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/auth/user-route-access-service.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/language/language.constants.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/language/language.helper.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/login/login-modal.service.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/login/login.service.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/model/base-entity.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/model/request-util.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/user/account.model.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/user/user.model.ts`);
          generator.removeFile(`${ANGULAR_DIR}shared/user/user.service.ts`);
          generator.removeFile(`${ANGULAR_DIR}admin/user-management/user-management-dialog.component.ts`);
          generator.removeFile(`${ANGULAR_DIR}admin/user-management/user-modal.service.ts`);
          generator.removeFile(`${ANGULAR_DIR}admin/user-management/user-modal.service.ts`);
  
          generator.removeFile(`${CLIENT_TEST_SRC_DIR}spec/app/shared/user/user.service.spec.ts`);
          generator.removeFile(`${CLIENT_TEST_SRC_DIR}spec/app/admin/user-management/user-management-dialog.component.spec.ts`);
          generator.removeFile(`${CLIENT_TEST_SRC_DIR}spec/entry.ts`);
          generator.removeFile(`${CLIENT_TEST_SRC_DIR}karma.conf.js`);
      }
      if (generator.isJhipsterVersionLessThan('5.8.0')) {
          generator.removeFile(`${ANGULAR_DIR}admin/metrics/metrics-modal.component.html`);
          generator.removeFile(`${ANGULAR_DIR}admin/metrics/metrics-modal.component.ts`);
          generator.removeFile(`${CLIENT_TEST_SRC_DIR}spec/app/admin/metrics/metrics-modal.component.spec.ts`);
      }
  }