DeleteIdentityCommand

Deletes the specified identity (an email address or a domain) from the list of verified identities.

You can execute this operation no more than once per second.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { SESClient, DeleteIdentityCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, DeleteIdentityCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const input = { // DeleteIdentityRequest
  Identity: "STRING_VALUE", // required
};
const command = new DeleteIdentityCommand(input);
const response = await client.send(command);
// {};

Example Usage

 Loading code editorLoading code editor

DeleteIdentityCommand Input

See DeleteIdentityCommandInput for more details

Parameter
Type
Description
Identity
Required
string | undefined

The identity to be removed from the list of identities for the Amazon Web Services account.

DeleteIdentityCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
SESServiceException
Base exception class for all service exceptions from SES service.