DeleteEmailIdentityCommand

Deletes an email identity. An identity can be either an email address or a domain name.

Example Syntax

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

import { SESv2Client, DeleteEmailIdentityCommand } from "@aws-sdk/client-sesv2"; // ES Modules import
// const { SESv2Client, DeleteEmailIdentityCommand } = require("@aws-sdk/client-sesv2"); // CommonJS import
const client = new SESv2Client(config);
const input = { // DeleteEmailIdentityRequest
  EmailIdentity: "STRING_VALUE", // required
};
const command = new DeleteEmailIdentityCommand(input);
const response = await client.send(command);
// {};

DeleteEmailIdentityCommand Input

See DeleteEmailIdentityCommandInput for more details

Parameter
Type
Description
EmailIdentity
Required
string | undefined

The identity (that is, the email address or domain) to delete.

DeleteEmailIdentityCommand Output

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

Throws

Name
Fault
Details
BadRequestException
client

The input you provided is invalid.

ConcurrentModificationException
server

The resource is being modified by another operation or thread.

NotFoundException
client

The resource you attempted to access doesn't exist.

TooManyRequestsException
client

Too many requests have been made to the operation.

SESv2ServiceException
Base exception class for all service exceptions from SESv2 service.