Empty Library content on SharePoint Online PNP PS

Empty Library content on SharePoint Online PNP PS

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.