I was looking for the syntax to delete multiple SC's with PS. The SC's are spread out over several different URL paths. I could use SharePoint manager 2010 but as PS is the supported method I'd prefer to do it this way.



Use :

Remove-SPSite –Identity "sitename" –GradualDelete –Confirm:$False

And also check: http://technet.microsoft.com/en-us/library/ff607948(v=office.15).aspx

  • Thanks. Is it possible to add multiple URLs within the -Identity param? – JazzyN May 13 '14 at 11:10
  • As far as i know, I don't think so it is possible to add multiple URL's. You need that command one by one for each site collection. – Aanchal May 13 '14 at 11:16
  • Ok no worries. This is still much faster than using the central admin tool. Thanks for the TechNet link...I'll use that next time. – JazzyN May 13 '14 at 11:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.