I have a GMail account with about 1 milion mails and I want to delete all the emails. There is no way to do it manually. So I thought I'd use ChatGTP to ask to help me write the code. It started extremely good, it wrote code for me told me how to set up a google app, we went back and forth to optimize it for rate limiting, etc. But in the end I'm getting the insufficientPermissions
error despite - according to ChatGTP - correct scope of <a href="https://www.googleapis.com/auth/gmail.modify">https://www.googleapis.com/auth/gmail.modify</a>
and both me and ChatGTP don't know how to fix it.