django get all instances of model code example Example: delete model object django SomeModel.objects.filter(id=id).delete()