
Apache Kafka TopicDelete
CertifiedDelete one or more Kafka topics
Apache Kafka TopicDelete
Delete one or more Kafka topics
Permanently deletes topics and all their data using the Kafka AdminClient. This operation is destructive and cannot be undone.
Fails with UnknownTopicOrPartitionException if a topic does not exist.
type: io.kestra.plugin.kafka.TopicDeleteExamples
Decommission tenant topics
id: kafka_topic_delete
namespace: company.team
tasks:
- id: delete_topics
type: io.kestra.plugin.kafka.TopicDelete
properties:
bootstrap.servers: localhost:9092
topics:
- tenant_acme_orders
- tenant_acme_shipments
Properties
properties *Requiredobject
Kafka AdminClient properties
Must include bootstrap.servers; accepts any Kafka AdminClient config. Provide base64-encoded content for ssl.keystore.location and ssl.truststore.location when using SSL.
topics *Requiredarray
Topics to delete
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
timeout string
PT30SAdminClient call timeout
Maximum duration to wait for each AdminClient operation to complete before failing the task. Defaults to PT30S (30 seconds).
Outputs
deletedTopics array
Topics that were deleted