Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

Repository files navigation

python-email-delete

This sample will show you to easily delete an email with the Nylas Python SDK.

You can follow along step-by-step in our blog post "How to Read Emails with the Nylas Python SDK".

Setup

System dependencies

  • Python v3.x

Gather environment variables

You'll need the following values:

ACCESS_TOKEN = ""
CLIENT_ID = ""
CLIENT_SECRET = ""

Add the above values to a new .env file:

$ touch .env # Then add your env variables

Install dependencies

$ pip3 install nylas

Usage

Run the script using the python3 command:

$ python3 DeleteEmail.py

When your message is successfully deleted, you'll get the following output in your terminal:

Email deleted succesfully

Learn more

Visit our Nylas Python SDK documentation to learn more.

About

Delete an email with the Nylas Python SDK!

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages