Is there a way to batch delete all items in the recycle bin on the client side in SharePoint Online?
I've tried using javascript:emptyItems() in the browser but this appears to time out after removing about 2k items. I have 1.5 million items and growing and would like to empty all at once and have a quick and easy way to do this going forward. Is there a way to do this using JSOM, CSOM or REST API?
I'm open to anything which doesn't involve central admin or server side access. Any direction would be appreciated.