How to recursively delete all sites in a Site Collection except the root site

This script allows to recursively delete all the sites defined in a specific site collection. The script defines a custom function that performs the deleting of all the sites except the root site. All the sites to be deleted are gotten using the method GetSubwebsForCurrentUser()

5 Star
1,387 times
Add to favorites
E-mail Twitter Digg Facebook
Be the first to ask a question.