fsspec/implementations/cached.py
def pop_from_cache(self, path):
        """Remove cached version of given file

        Deletes local copy of the given (remote) path. If it is found in a cache
        location which is not the last, it is assumed to be read-only, and
        raises PermissionError
        """
        path = self._strip_protocol(path)
        _, fn = self._check_file(path)
        if fn is None:
            return
        if fn.startswith(self.storage[-1]):
            # is in in writable cache
            os.remove(fn)
            self.cached_files[-1].pop(path)
            self.save_cache()
        else:
            raise PermissionError(
                "Can only delete cached file in last, writable cache location"
            )
Remove cached version of given file

        Deletes local copy of the given (remote) path. If it is found in a cache
        location which is not the last, it is assumed to be read-only, and
        raises PermissionError
        
Remove cached version of given file
Deletes local copy of the given (remote) path. If it is found in a cache
location which is not the last, it is assumed to be read-only, and
raises PermissionError
Remove cached version of given file Deletes local copy of the given ( remote ) path . If it is found in a cache location which is not the last it is assumed to be read - only and raises PermissionError
def pop_from_cache(self, path):
        path = self._strip_protocol(path)
        _, fn = self._check_file(path)
        if fn is None:
            return
        if fn.startswith(self.storage[-1]):
            os.remove(fn)
            self.cached_files[-1].pop(path)
            self.save_cache()
        else:
            raise PermissionError(
                "Can only delete cached file in last, writable cache location"
            )
def pop_from_cache ( self , path ) : path = self . _strip_protocol ( path ) _ , fn = self . _check_file ( path ) if fn is None : return if fn . startswith ( self . storage [ - 1 ] ) : os . remove ( fn ) self . cached_files [ - 1 ] . pop ( path ) self . save_cache ( ) else : raise PermissionError ( "Can only delete cached file in last, writable cache location" )
Remove cached version of given file
Deletes local copy of the given (remote) path.
Remove cached version of given file Deletes local copy of the given ( remote ) path .
"""Remove cached version of given file

        Deletes local copy of the given (remote) path. If it is found in a cache
        location which is not the last, it is assumed to be read-only, and
        raises PermissionError
        """ # is in in writable cache
self
path