Empty Library content on SharePoint Online PNP PowerShell script

Empty Library content on SharePoint Online PNP PowerShell script

This PNP PowerShell script we used to empty large SPO Libraries where the browser delete option does not work due to large number of files and  folders stored in the library.

Below script uses Azure enterprise app authentication method.