Hi sorry to bump an old topic, but this the closest I could find to a similar situation I am trying to achieve.
I have a 365 for developers account, in which several onedrive accounts automatically add & delete data. - My only issue is that the Recycle bin isn't able to be emptied, and I have to log in, and do it manually - if I don't, the accounts eventually get full and it is a little bit of a hindrance.
This is the first time I am attempting to use PowerAutomate - I eventually will find my way, I just need some firm guidance. I was thinking of running a command to automatically empty the recycle bin once per day - this should sort all the issues I have been having.
I have tried using Rhea's script, and edited the relevant info to reflect my own Onedrive account, using Wordpad. I also changed the frequency from 3 days, to one day, I am then able to import file into power automate, but I cannot add a connection to OneDrive, and once I exist the PowerAutomate page, it doesn't show up again.
Will wait for a response.
Thanks so much in advance.