Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Deleting and creatiing root site collection during package pre deployment

Posted on 2013-02-04
2
411 Views
Last Modified: 2013-02-05
Background:
In a vid course I'm taking, it is demonstrating pre-deployment commands for a solution. It is solving the problem of not being able to redeploy a list that is already there. It seems good that SharePoint doesn't let you deploy a list of the same name and I'm guessing it's because you would overwrite the existing data in the list with blank data or whatever data you deploy as part of the solution. However, in a dev environment, you will need to redeploy often and won't have any live data. So the suggestion of this course is that during pre-deployment, you wipe out the root site collection and then recreate it as the first step in the deployment, before solution retraction, add, activate....

Question:
In his example, I do not believe that he has any additional site collections under /sites or anywhere else, but in my case, I have some site collections under /sites. If I delete and create the root site collection, what happens with the other site collections? Do they disappear too? If they stay, are they considered children in some way and therefore will be orphaned or are they only related by falling within the same root url and are therefore pretty much independent except for the common resources they all share?

Thanks.
0
Comment
Question by:BobHavertyComh
2 Comments
 
LVL 38

Accepted Solution

by:
Justin Smith earned 500 total points
ID: 38852742
If you delete a root site collection, the others won't be affected.  They will remain and will not be orphaned.  However, as a best practice, each web app should have a root site collection, even if it's just a place holder site.


__________________________________________________
Follow me on Twitter!  @justinsmith317
0
 
LVL 9

Author Closing Comment

by:BobHavertyComh
ID: 38854259
OK. Just needed to make sure I understand the relationships before deleting anything. So even though one site collection has a url within the other, they are both at the same level in terms of actual hierarchy. Thanks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question