Skip to contentSkip to navigationSkip to topbar
On this page

Delete Account



API Overview

api-overview page anchor

The Twilio SendGrid Account Provisioning API provides a platform for Twilio SendGrid resellers to manage their customers. This API is for companies that have a formal reseller partnership with Twilio SendGrid.

You can access Twilio SendGrid sub-account functionality without becoming a reseller. If you require sub-account functionality, see the Twilio SendGrid Subusers feature, which is available with Pro and Premier plans(link takes you to an external page).

The Account Provisioning API account operations allow you to create, retrieve, and authenticate customer accounts.


DELETE/v3/partners/accounts/{accountID}

Base url: https://api.sendgrid.com (for global users and subusers)

Base url: https://api.eu.sendgrid.com (for EU regional subusers)

Delete a specific account under your organization by account ID. Note that this is an irreversible action that does the following:

  • Revokes API Keys and SSO so that the account user cannot log in or access SendGrid data.
  • Removes all offerings and configured SendGrid resources such as dedicated IPs.
  • Cancels billing effective immediately.

Authentication

authentication page anchor
Property nameTypeRequiredDescription
Authorizationstringrequired
Default: Bearer <<YOUR_API_KEY_HERE>>
Property nameTypeRequiredDescription
accountIDstringrequired

Twilio SendGrid account ID

204400401403404

Account successfully deleted.

Delete accountLink to code sample: Delete account
1
const client = require("@sendgrid/client");
2
client.setApiKey(process.env.SENDGRID_API_KEY);
3
4
const accountID = "ZGkrHSypTsudrGkmdpJJ";
5
6
const request = {
7
url: `/v3/partners/accounts/${accountID}`,
8
method: "DELETE",
9
};
10
11
client
12
.request(request)
13
.then(([response, body]) => {
14
console.log(response.statusCode);
15
console.log(response.body);
16
})
17
.catch((error) => {
18
console.error(error);
19
});

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.