Skip to main content
DELETE
/
api
/
e2
/
emails
/
{id}
JavaScript
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>"
}

Authorizations

Authorization
string
header
required

Your Inbound API key. Include it in the Authorization header as: Bearer

Path Parameters

id
string
required

Response

Response for status 200

success
boolean
required
message
string
required
id
string
required