def METHOD_NAME(self, key):
    file = self.cache_path(key)
    lock = self._get_lock(key)
    try:
        lock.acquire_write()
        os.unlink(file)
    except OSError as e:
        # File not found is OK, so remove is idempotent.
        if e.errno != errno.ENOENT:
            raise
    finally:
        lock.release_write()