code: def cleancache(self):
  		''' Usage: cleancache - remove invalid entries from hash cache file'''
  		if os.path.exists(self.__hashcachepath):
  			try:
  				# backup first
  				backup = self.__hashcachepath + '.lastclean'
  				shutil.copy(self.__hashcachepath, backup)
  				self.pd("Hash Cache file '{}' backed up as '{}".format(
  					self.__hashcachepath, backup))
  				cached.cleancache()
  				return const.ENoError
  			except Exception as ex:
  				perr(formatex(ex))
  				return const.EException
  		else:
  			return const.EFileNotFounf cleancache(self):
  		''' Usage: cleancache - remove invalid entries from hash cache file'''
  		if os.path.exists(self.__hashcachepath):
  			try:
  				# backup first
  				backup = self.__hashcachepath + '.lastclean'
  				shutil.copy(self.__hashcachepath, backup)
  				self.pd("Hash Cache file '{}' backed up as '{}".format(
  					self.__hashcachepath, backup))
  				cached.cleancache()
  				return const.ENoError
  			except Exception as ex:
  				perr(formatex(ex))
  				return const.EException
  		else:
  			return const.EFileNotFound
docs: Usage: cleancache - remove invalid entries from hash cache file