ForgetAllExtensionPaths(bool all, string searchPath) { if (all) { foreach (string regSearchPath in PyRevitExtensions.GetRegisteredExtensionSearchPaths()) { PyRevitExtensions.UnregisterExtensionSearchPath(regSearchPath); } } else { PyRevitExtensions.UnregisterExtensionSearchPath(searchPath); } }