I would like to find something to delete the cache files and the original image file when the image is deleted. I've seen snippets from other users use signals, so this is what I'm trying. What should the real version of delete_all_created_images() and delete_original_image() be? Thanks
@receiver(models.signals.post_delete, sender=Image)
def delete_image(sender, instance, **kwargs):
instance.image.delete_all_created_images()
instance.image.delete_original_image()