Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to remove from SPSiteSubscriptionConfig

$
0
0

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.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>