Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deleting and creatiing root site collection during package pre deployment

Posted on 2013-02-04
2
Medium Priority
?
435 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

824 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