def delete_image_files(sender, instance, **kwargs):
        image_fields = (models.ImageField, thumbnail.ImageField)
        for field in instance._meta.fields:
            if isinstance(field, image_fields):
                # Make Django return ImageFieldFile instead of ImageField
                fieldfile = getattr(instance, field.name)
                try:
                    thumbnail.delete(fieldfile)
                except ThumbnailError:
                    pass

    # connect for all models with ImageFields - add as needed
Deletes the original image, created thumbnails, and any entries
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/catalogue/receivers.py/delete_image_files