Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

nylas-samples/node-delete-email

Repository files navigation

node-delete-email

This sample repo will show you how to easily delete an email with the Nylas Node.js SDK.

Setup

System dependencies

  • Node.js v16.x

Gather environment variables

You'll need the following values, including the ID of the message you like to delete:

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

Add the above values to a .env file:

Install dependencies

$ npm i

Usage

Run the script using following commands:

$ npm run build
$ node build/index.js

When you run the script, you'll get account information output in your terminal:

Message "<MESSAGE_ID>" was deleted.

Learn more

Visit our Nylas Node.js SDK documentation to learn more.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published