Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

How to remove multiple site collections using powershell!!

$
0
0

Hello all,

I've a requirement to delete approx 30 site collections on a SharePoint farm. Instead of removing one site collection at a time is there a way to delete all the site collections at one go.

I've used the below script to achieve it, however it didn't work..

#Define the Array with List of sites
$sites = Import-Csv ".\sites.csv"
Remove-SPSite -Identity $sites -Confirm -GradualDelete

It would be greate if anyone could hep me with this.

-Yash



Yashwanth Mannem


Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images