import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const emailAddress = await client.emailAddresses.delete('id');
console.log(emailAddress.cleanup);{
"message": "<string>",
"cleanup": {
"sesRuleUpdated": true,
"emailAddress": "<string>",
"domain": "<string>",
"warning": "<string>"
}
}Delete an email address. Returns cleanup status.
import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const emailAddress = await client.emailAddresses.delete('id');
console.log(emailAddress.cleanup);{
"message": "<string>",
"cleanup": {
"sesRuleUpdated": true,
"emailAddress": "<string>",
"domain": "<string>",
"warning": "<string>"
}
}Was this page helpful?