0

I've been moving subsites into their own site collections and am now in the process of removing the old subsites. I know I can go through the UI in "Site Actions" -> "Sites and workspaces" to remove the subsites effectively. The current path for both sites are root/sitecollection and root/subsite, both with the same name.

Would SPWeb target the subsite and SPSite target the collection given they both have the same path? Is there a way to see this difference in powershell?

0

Browsing from site collection -> subsite would actually take me to the new site collection that I created since I added a managed path entry when creating the new site collection of the same name.

To remove the subsite I temporarily deleted the managed path for root/sitecollection which forced root/subsite to become active again along that path. I was then free to remove the subsite via site settings or powershell.

Afterwards I re-added the managed path and the root/sitecollection became active. I only had to do this because both subsite and sitecollection were named and pathed the same.

-1

you can try ~sitecollection/path-in-root-site

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • 2
    Can you please add more details to this answer to make it helpful, it is not easy to understand what you are proposing – Robert Lindgren Oct 14 '14 at 18:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.