jeremyephron / simplegmail

A simple Gmail API client for applications in Python
MIT License
348 stars 74 forks source link

Delete Message #32

Closed cod3r-dev closed 3 years ago

cod3r-dev commented 3 years ago

Add delete feature please!

Nice work!

jeremyephron commented 3 years ago

Once you have the Message object you want to delete, you can call msg.trash() (there is also msg.archive(), msg.move_to_inbox(), and msg.untrash() among other methods)

https://github.com/jeremyephron/simplegmail/blob/master/simplegmail/message.py#L208