[Answered ]-How can I delete all non-matching query results in django?

1👍

You can work with .exclude(…) [Django-doc], so:

Model.objects.exclude(value__in=list).delete()

Leave a comment