Delete Topic
DELETE /public/v1/connections/{server}/streams/{topic}
Deletes an existing topic from the specified connection (Kafka cluster).
Request
Path Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
server | string | Connection ID (Kafka cluster name) | Yes |
topic | string | Name of the topic to delete | Yes |
Example Request
curl --location --request DELETE 'https://your-instance.com/public/v1/connections/my-server/streams/my.topic' \
--header 'Authorization: Bearer <your-api-key>'
Response
HTTP Status Code: 200 OK
Response Body: (empty)
Possible Errors
| Status Code | Description | Solution |
|---|---|---|
| 400 | Invalid request | Check path parameters |
| 401 | Unauthorized | Check your API key |
| 404 | Topic not found | Verify connection ID and topic name |