Delete gmail emails in a batch manner with python via a local socks5 proxy

I want to delete some emails in my Gmail account connected via a local socks5 proxy, say, I tried to use this example with python 3.8/3.9, but all failed.

Any hints for this job will be highly appreciated.


For deleting emails in Gmail you should look into GMail API documentation. Gmail API  |  Google Developers

There’s a Python client for it. Here’s the quick start guide Python Quickstart  |  Gmail API  |  Google Developers

1 Like