how to delete policy

Topics: Usage Scenarios
Oct 30, 2008 at 5:00 PM
I can't see a way of deleting a policy in the mse mmc snap-in, does anyone know how to do it?

Oct 30, 2008 at 9:32 PM
Yeah, unfortunately the current UI doesn't allow deleting a policy.  However, the Catalog Service API does expose a DeletePolicy operation.  In addition, there is a DeletePolicy stored procedure you could call from  a SQL Server Management Studio query window.  Both require supplying the guid that identifies the policy.  You can get the guid for the policy by looking up the name of the policy in the ServiceEngine.Names table and retrieving the value of the EntityID column.
Oct 31, 2008 at 1:26 PM
Thanks botto