We recommend using Visual Studio 2017

Database.DisableAllPlanGuides Method

Disables all Plan Guides in a database.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public void DisableAllPlanGuides()
Show: