Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class DeleteTemplateCommandProtected

Deletes an email template.

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

Example

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

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

Param

DeleteTemplateCommandInput

Returns

DeleteTemplateCommandOutput

See

Throws

SESServiceException

Base exception class for all service exceptions from SES service.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<DeleteTemplateCommandInput, DeleteTemplateCommandOutput>

Methods