Skip to main content
DELETE
/
api
/
e2
/
endpoints
/
{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 endpoint = await client.endpoints.delete('id');

console.log(endpoint.cleanup);
{
  "message": "<string>",
  "cleanup": {
    "emailAddressesUpdated": 123,
    "emailAddresses": [
      "<string>"
    ],
    "domainsUpdated": 123,
    "domains": [
      "<string>"
    ],
    "groupEmailsDeleted": 123,
    "deliveriesDeleted": 123
  }
}

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

message
string
required
cleanup
object
required