DELETE /v3/clusters/{string: cluster_id}/topics/{string: topic_name}

Deletes a topic from the specific cluster.

Description

The behavior of the information retrieved depends on the configuration. See streams.default.stream in Configuration Parameters.
Table 1. Response Behavior
Parameters Defined Response
streams.default.stream is defined Deletes topic from the default stream.
streams.default.stream is not defined Returns {"error_code":80001,"message":"HPE Ezmeral Data Fabric Event Data Streams does not currently support this API. Set the streams.default.stream parameter to return topics for the default stream"}.
Table 2. Parameters
Parameters Description
cluster_id (string) Cluster’s id.
topic_name (string) Name of the topic.

Syntax

http://<host>:8082/v3/clusters/<string: cluster_id>/topics/<string: topic_name>

Request Example

$ curl -X DELETE -H "Content-Type: application/json" "http://localhost:8082/v3/clusters/682798077049224619/topics/new-topic"

Response Example

HTTP/1.1 204 No Content