// DeleteSubject deletes the specified subject and its associated compatibility level if registered.
// It is recommended to use this API only when a topic needs to be recycled or in development environment.
// Returns the versions of the schema deleted under this subject.
DeleteSubject deletes the specified subject and its associated compatibility level if registered.
It is recommended to use this API only when a topic needs to be recycled or in development environment.
Returns the versions of the schema deleted under this subject.
// DeleteSubject deletes the specified subject and its associated compatibility level if registered . // It is recommended to use this API only when a topic needs to be recycled or in development environment . // Returns the versions of the schema deleted under this subject .
func (c *Client) DeleteSubject(subject string) (versions []int, err error) {
	if subject == "" {
		err = errRequired("subject")
		return
	}
	path := fmt.Sprintf(subjectPath, subject)
	resp, respErr := c.Do(http.MethodDelete, path, "", nil, schemaAPIOption)
	if respErr != nil {
		err = respErr
		return
	}
	err = c.ReadJSON(resp, &versions)
	return
}
func ( c * Client ) DeleteSubject ( subject string ) ( versions [ ] int , err error ) { if subject == " " { err = errRequired ( " " ) return } path := fmt . Sprintf ( subjectPath , subject ) resp , respErr := c . Do ( http . MethodDelete , path , " " , nil , schemaAPIOption ) if respErr != nil { err = respErr return } err = c . ReadJSON ( resp , & versions ) return }
DeleteSubject deletes the specified subject and its associated compatibility level if registered.
DeleteSubject deletes the specified subject and its associated compatibility level if registered .
// DELETE /api/proxy-sr/subjects/(string: subject)