Skip to content

DeleteTopic

Source: src/AWS/Kafka/DeleteTopic.ts

Runtime binding for the DeleteTopic operation (IAM action kafka:DeleteTopic), scoped to one ServerlessCluster.

Deletes a Kafka topic on the bound cluster through the MSK control plane. Provide the implementation with Effect.provide(AWS.Kafka.DeleteTopicHttp).

const deleteTopic = yield* Kafka.DeleteTopic(cluster);
yield* deleteTopic({ TopicName: "orders" });