Over 260 scripts for SharePoint Online (SPO), OneDrive for Business, and SharePoint Server. The samples fix issues, provide reports and extra settings not available via UI. The scripts use Powershell, C#, CSOM and REST. They include copies of existing scripts from Technet Gallery years 2013-2019. >>> Scroll down to see the full index
https://github.com/PowershellScripts/AllGalleryScriptsSamples/blob/b5decb01d6654b74cf73b2a85f76968de2ee55e7/Pages/ClassicWebparts/Delete%20all%20web%20parts%20from%20a%20single%20page/DeleteAllWebParts.ps1#L39