Django-AWS S3, unable to delete bucket objects

Solution 1:

As Luiz said, the files persist after deleting the object. I recommend to create a signal to delete the files after the object has been deleted:

@receiver(models.signals.post_delete, sender=YourModel)
def remove_image_file_from_s3_on_delete(sender, instance, **kwargs):
    instance.your_field_name.delete(save=False)