def clear(self):
        """
        Remove all entries from the cache and delete all data.
        :return:
        """
        for f in [x['content'] for x in self.metadata.values()]:
            os.remove(f)

        self.metadata = {}
        self._flush()