question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New command: remove classic site

See original GitHub issue

Remove classic site

  • command: spo site classic remove -u|--url <url> --skipRecycleBin --confirm
  • url - url of the site to remove, required
  • skipRecycleBin - set to directly remove the site without moving it to the Recycle Bin
  • confirm - don’t prompt for confirmation before removing the site
  • requires connection to tenant admin site

For more information see: https://github.com/SharePoint/PnP-PowerShell/blob/59f19f26232e46b429687bfdfa10600258ef6bb7/Commands/Admin/RemoveTenantSite.cs

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
appieschotcommented, Aug 16, 2018

Quick question(s):

  • deletion can take some time as well (most deletions are handled within the first request, but some larger sites take up to a few minutes), do you expect a --wait option as well?
  • When you delete without --skipRecycleBin the site will be moved to the recycle bin. In PnP they introduced a --fromRecycleBin to remove it from there (otherwise you would not have an option to delete it from that location as well). Would that be a requirement for this command as well?
1reaction
waldekmastykarzcommented, Mar 8, 2018

Excellent! All yours!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing the empty classic team root site and create a ...
I want to start a new Office 365 project. and i am facing with the same old/new issue, is that there root site...
Read more >
site remove - CLI for Microsoft 365
To use this command you have to have permissions to access the tenant admin site. Remarks¶. Deleting a site collection is by default...
Read more >
How to replace a classic root site in SharePoint Online with ...
In this article, I explain how to replace a classic root site in SharePoint Online with a modern Communication Site.
Read more >
Delete SharePoint Site Permanently using PowerShell
In this SharePoint video tutorial, learn how to delete SharePoint site. I will show you how to delete SharePoint Online site from SharePoint ......
Read more >
How to delete SharePoint site?
But to delete a subsite, you can open the site in the browser and then go to the Site Settings page. And there...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found