Deletes a topic and all its subscriptions. Deleting a topic might prevent some
messages previously sent to the topic from being delivered to subscribers. This action
is idempotent, so deleting a topic that does not exist does not result in an
error.
example
Use a bare-bones client and the command you need to make an API call.
Deletes a topic and all its subscriptions. Deleting a topic might prevent some messages previously sent to the topic from being delivered to subscribers. This action is idempotent, so deleting a topic that does not exist does not result in an error.
Use a bare-bones client and the command you need to make an API call.
import { SNSClient, DeleteTopicCommand } from "@aws-sdk/client-sns"; // ES Modules import // const { SNSClient, DeleteTopicCommand } = require("@aws-sdk/client-sns"); // CommonJS import const client = new SNSClient(config); const command = new DeleteTopicCommand(input); const response = await client.send(command);
DeleteTopicCommandInput for command's
input
shape.DeleteTopicCommandOutput for command's
response
shape.config for SNSClient's
config
shape.