Deleting SharePoint Subsites 

Tags: Information Architecture, SharePoint, Upgrade / Migration, MOSS 2007

 

During a recent information architecture project for a client who was migrating data from a single site collection to thirteen site collections, I realized that I would need to delete one of the subsites contained within the original site collection.  It would have been nice and simple if I just needed to delete the site collection, but unfortunately this was not the case.  The problem was the overwhelming number of sites that needed to be deleted.  We all love using the stsadm command line tool, but one shortfall is that you cannot delete a site that contains a subsite.  In the past I have bit the bullet and deleted sites, one at at time, using the stsadm –o deleteweb command, but I did not have the time or patience for that in this situation. 

 

After doing some online research I found the answer I was looking for; there “IS” a better way to delete sites in SharePoint!  Gary Lapointe has created a new command called gl-deleteweb2.  It behaves similarly to the original stsadm –o deleteweb command except that you can pass a ”recurse”  switch to have it delete recursively (delete the web and all it's children).  The solution was extremely easy to download and install and saved me a huge amount of time. 

 

Check out the solution which can be found at http://stsadm.blogspot.com/2007/09/better-delete-web.html

 
Posted by Janice Fiorillo on 28-Jan-10
0 Comments  |  Trackback Url  |  Link to this post | Bookmark this post with:          
 

Links to this post



Even More SharePoint 2010 News; SPC09 Day 3; Windows 7 Hits the Street

Trackback from SharePoint Daily on 22 Oct 2009





Does SharePoint 2010 Deliver?; Is Microsoft Still Relevant?; Bamboo Products & SharePoint 2010

Trackback from SharePoint Daily on 27 Oct 2009





SharePoint Makes the Donuts; Los Angeles Moves to Gmail; Government 2.0 = Free Data?

Trackback from SharePoint Daily on 28 Oct 2009





Why Did L.A. Chose Google?; Azure for Open-source Developers; Business & Tech on SharePoint 2010

Trackback from SharePoint Daily on 29 Oct 2009





Is Recent SharePoint Success at Risk?; A Silver Lining in the Recession; Patch Tuesday Focuses on Windows

Trackback from SharePoint Daily on 11 Nov 2009





Did Microsoft Copy Mac OS for Windows 7?; Office 2010 Public Beta Next Week?; Cloud Computing Revenue Up 18%

Trackback from SharePoint Daily on 12 Nov 2009





SharePoint MVP 2010 Predictions; App War is Brewing in the Cloud; Google Mounts Attack on Microsoft in the Enterprise

Trackback from SharePoint Daily on 04 Jan 2010





Five New SP2010 Features; Oracle to Take on Microsoft Office; Could the iPad Give Microsoft Fits?

Trackback from SharePoint Daily on 29 Jan 2010



Comments

Name:
URL:
Email:
Comments: