import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const email = await client.emails.delete('id');
console.log(email.id);{
"success": true,
"message": "<string>",
"id": "<string>"
}Cancel a scheduled email by ID. Only works for emails that haven’t been sent yet.
import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const email = await client.emails.delete('id');
console.log(email.id);{
"success": true,
"message": "<string>",
"id": "<string>"
}Was this page helpful?