Hi All,
I have created UPA in partioned mode. During creation of site collection, I am running the following commands.
string powerShellCommand1 = String.Format("Set-SPSiteSubscriptionConfig -Identity {0} -UserAccountDirectoryPath \"{1}\"", siteSubscriptionId, activeDirectoryPathOfOU);
string powerShellCommand2 = "$proxy = Get-SPServiceApplicationProxy | where {$_.DisplayName -eq \"" + UPAProxyName + "\"}";
string powerShellCommand3 = String.Format("Add-SPSiteSubscriptionProfileConfig -Identity {0} -ProfileServiceApplicationProxy $proxy.Id " +
" -SynchronizationOU {1} -MySiteHostLocation \"{2}\" -MySiteManagedPath \"/{3}\"", siteSubscriptionId, synchronizationOU, mySiteHostUrl, managedPath);
RunCommands(new string[] { powerShellCommand1, powerShellCommand2, powerShellCommand3 });
Now, If I delete the site collection, the entries made by the above commands in sharepoint are not removed. What are the steps that I should follow to clean up those entries, before I delete the site collection?
Thanks in advance,
Moohak.