// DeleteTopic deletes a topic.
// It accepts the topicName, a required, not empty string.
//
// Read more at: https://docs.lenses.io/dev/lenses-apis/rest-api/index.html#delete-topic
DeleteTopic deletes a topic.
It accepts the topicName, a required, not empty string.


// DeleteTopic deletes a topic . // It accepts the topicName a required not empty string . // // Read more at : https : // docs . lenses . io / dev / lenses - apis / rest - api / index . html#delete - topic
func (c *Client) DeleteTopic(topicName string) error {
	if topicName == "" {
		return errRequired("topicName")
	}
	path := fmt.Sprintf(topicPath, topicName)
	resp, err := c.Do(http.MethodDelete, path, "", nil)
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
func ( c * Client ) DeleteTopic ( topicName string ) error { if topicName == " " { return errRequired ( " " ) } path := fmt . Sprintf ( topicPath , topicName ) resp , err := c . Do ( http . MethodDelete , path , " " , nil ) if err != nil { return err } return resp . Body . Close ( ) }
DeleteTopic deletes a topic.
DeleteTopic deletes a topic .