docs: def clean_up(self):
          """
          :return:
          """
          if self.auth_type == 'registry_rubber' and self.user:
              self._registry_rubber_uonce('delete')
  
          # clean up old docker configs.
          user_home = os.environ.get('HOME')
          for file_name in os.listdir(user_home):
              if 'dockercfg' in file_name:
                  if file_name.count('.') is 2:
                      try:
                          parts = file_name.split('.')
                          delta = int(time.time()) - int(parts[1])
  
                          # default to 30 seconds?
                          if delta > 30:
                              os.remove(os.path.realpath(os.path.join(user_home, file_name)))
                      except Exception:
                          pass