def delete_mediafile(self, name=None):
        if name == None:
            name = self.file.name
        try:
            self.file.storage.delete(name)
        except Exception as e:
            logger.warn("Cannot delete media file %s: %s" % (name, e))


# ------------------------------------------------------------------------
dataset/ETHPy150Open feincms/feincms/feincms/module/medialibrary/models.py/MediaFileBase.delete_mediafile/operator `is` -> `==`