remove objects from django query which is foreign key code example Example: django delete object SomeModel.objects.filter(id=id).delete()