delete object from django model based on id code example Example: delete model object django SomeModel.objects.filter(id=id).delete()