def unlink(self):
        """Delete the remote file if it is no longer referenced."""
        refs = RemoteStorage.objects.filter(content_hash=self.content_hash)
        if refs.count() == 1:
            try:
                logger.info("Deleting %s" % self.remote_path)
                self.get_storage().delete(self.remote_path)
            except __HOLE__ as e:
                logger.error("Error removing file '%s': %s" %
                             (self.remote_path, e))
dataset/ETHPy150Open jbittel/django-multimedia/multimedia/models.py/RemoteStorage.unlink