PowerShell To Delete Site Collection
It’s easy to create a site collection using PowerShell as seen in an earlier post. Now let’s see how easy it is to delete a site collection using PowerShell cmdlet. It’s any day efficient way to create and delete site collections using PowerShell then use Central Administration GUI.
For the purpose of testing we will
· Create a site collection named 2Delete using a site template STS#0
· Delete a site collection named 2Delete
- I am sure it can be done! :) I am a no code guy ;)...
- Can this be done with code?; For example when the webpart is...
- Fab 40 for MOSS 2010 are now available http://microsofttec...
- i was try to remove site with "Remove-SPSite http://....." ...
- I am unable to do this in Outlook2007 :( .. I have tried eve...
- Hi, I need to ask something that regard the lookup field for...
- how do I download windows live hotmail plus to gain more MB'...
- What I did was to extend the webapplication to port 80 inste...
- I have a question... If i extend the web application to the ...
- in part 11 when i submit the info i get the error "The va...








Irman said,
Wrote on July 2, 2010 @ 9:18 am
i was try to remove site with “Remove-SPSite http://…..”
But i get error below :
Remove-SPSite : Cannot find an SPSite object with Id or Url: http://win-2k8:23349/algolab/.
At line:1 char:14
+ Remove-SPSite <<<< http://win-2k8:23349/algolab/
+ CategoryInfo : InvalidData: (Microsoft.Share…mdletRemoveSite:SPCmdletRemoveSite) [Remove-SPSite], SPCmdletPipeBindException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveSite
The site that i want to delete is in http://win-2k8:23349/algolab.
Why i get error like that?help me please..