python code to delete all emails from gmail for one particular label

Job ID: 36805779

Budget: $10 – $30 CAD

how to delete by python code all emails from gmail for one particular label
for example forums label ( 800000 email, may be delete by 100 at one time )
or particular date range and sent from particular email
for example
after:2023/4/12 lable:forums
from:() after:2023/3/10 before:2023/4/22

https://stackoverflow.com/questions/64734384/deleting-specific-emails-in-gmail-using-python
I cant mass delete 800k emails that were filtered and labeled.
https://www.youtube.com/watch?v=WcESL1JLg_E
Related categories: Python Web Scraping