ForgetExtensionLookupSources(bool all, string lookupPath) { if (all) { PyRevitExtensions.UnregisterAllExtensionLookupSources(); } else if (lookupPath != null) { PyRevitExtensions.UnregisterExtensionLookupSource(lookupPath); } }