def remove(self, file_handle_id, path=None, delete=None):
        removed = []
        cache_dir = self.get_cache_dir(file_handle_id)

        ## if we've passed an entity and not a path, get path from entity
        if path is None and isinstance(file_handle_id, collections.Mapping) and 'path' in file_handle_id:
            path = file_handle_id['path']

        with Lock(self.cache_map_file_name, dir=cache_dir):
            cache_map = self._read_cache_map(cache_dir)

            if path is None:
                for path in cache_map:
                    if delete is True and os.path.exists(path):
                        os.remove(path)
                    removed.append(path)
                cache_map = {}
            else:
                path = utils.normalize_path(path)
                if path in cache_map:
                    if delete is True and os.path.exists(path):
                        os.remove(path)
                    del cache_map[path]
                    removed.append(path)

            self._write_cache_map(cache_dir, cache_map)

        return removed
Remove a file from the cache.
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/cache.py/Cache.remove