This sample will show you to easily delete grants with the Nylas Node.js SDK.
API_KEY="YOUR_API_KEY"
npm install
npm start
? Select an email to delete:: (Use arrow keys) ❯ johndoe@gmail.com john.doe@gmail.com johndoe@outlook.com
Grants deleted successfully!
DETAILS:
===============================
Request ID: ${requestId}
GRANTS ID: ${answer.grants.id}
Email: ${answer.grants.email}
===============================
? Do you want to delete another grants? No Goodbye!