Deleting an Approval
To delete an approval
- Retrieve an IUpdate instance of the update whose approval you want to remove.
- Call one of the overloaded IUpdate.GetUpdateApprovals() methods to retrieve the approval.
- Call IUpdateApproval.Delete() to delete the approval.
You cannot remove an automatic approval rule—you can only disable the rule.
To disable an automatic approval rule
- Call either the IUpdateServer.GetInstallApprovalRule() to retrieve the install approval rule or IUpdateServer.GetScanApprovalRule() to retrieve the scan approval rule.
- Set IAutomaticUpdateApprovalRule.Enabled to false.
- Call IAutomaticUpdateApprovalRule.Save() to save the rule.