This sample will show you to easily delete an email with the Nylas Ruby SDK.
- Ruby v3.x
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
$ gem install nylas
$ gem install dotenv
Run the script using the ruby
command:
$ ruby DeleteEmail.rb
When your message is successfully deleted, you'll get the following output in your terminal:
Your message was succesfully deleted
Visit our Nylas Ruby SDK documentation to learn more.