Sometimes we come across a situation that we need delete a SharePoint online site collection, might because it was created by mistake or later decided it needs to be removed.
Open SharePoint online management shell(check here for help) and follow below steps.
- Type below command replacing the url with your SharePoint admin center url. Please note word -admin in the url, you can place it by typing or copy the url directly from browser by navigating to SharePoint admin center. To know how to navigate to SharePoint admin center you can check here.
Connect-SPOService -Url https://companyname-admin.sharepoint.com
After hitting enter it will ask for credentials. Provide the credentials and click OK. This user
must be a member of the tenant’s Global Admin or SharePoint Administrator role.
- Then type below command by placing correct url of your site collection.
Remove-SPOSite "https://companyname.sharepoint.com/sites/yoursitecol"
You can also check how to delete SharePoint online site collection manually.
No comments:
Post a Comment