Skip to content

Sns  >  Operations  >  delete_topic

delete_topic

Operation

delete_topic async

delete_topic(input: DeleteTopicInput, plugins: list[Plugin] | None = None) -> DeleteTopicOutput

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.

Parameters:

Name Type Description Default
input DeleteTopicInput

An instance of DeleteTopicInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteTopicOutput

An instance of DeleteTopicOutput.

Input

DeleteTopicInput dataclass

Dataclass for DeleteTopicInput structure.

Attributes

topic_arn class-attribute instance-attribute
topic_arn: str | None = None

The ARN of the topic you want to delete.

Output

DeleteTopicOutput dataclass

Dataclass for DeleteTopicOutput structure.