How to delete SharePoint Site Collection using pnp csom programmatically
问题 I have a requirement on SharePoint Online Office 365. As per my requirement, I have to delete all the Site Collection from SharePoint Online Office 365 Admin Center using pnp csom programmatically. Anyone can suggest that how can I delete all the Site Collection? 回答1: You can use DeleteSiteCollection extension method to remove the site collection. It can be used as below: string userName = "admin@tenant.onmicrosoft.com"; string password = "password"; string siteUrl = "https://tenant-admin