// deleteSubjectSchemaVersion deletes a specific version of the schema registered under this subject.
// It's being used in `DeleteSchemaVersion` and `DeleteLatestSchemaVersion`.
deleteSubjectSchemaVersion deletes a specific version of the schema registered under this subject.
It's being used in `DeleteSchemaVersion` and `DeleteLatestSchemaVersion`.
// deleteSubjectSchemaVersion deletes a specific version of the schema registered under this subject . // It ' s being used in ` DeleteSchemaVersion ` and ` DeleteLatestSchemaVersion ` .
func (c *Client) deleteSubjectSchemaVersion(subject string, versionID interface{}) (int, error) {
	if subject == "" {
		return 0, errRequired("subject")
	}
	if err := checkSchemaVersionID(versionID); err != nil {
		return 0, err
	}
	path := fmt.Sprintf(subjectPath+"/versions/%v", subject, versionID)
	resp, err := c.Do(http.MethodDelete, path, contentTypeSchemaJSON, nil, schemaAPIOption)
	if err != nil {
		return 0, err
	}
	var res int
	err = c.ReadJSON(resp, &res)
	return res, err
}
func ( c * Client ) deleteSubjectSchemaVersion ( subject string , versionID interface { } ) ( int , error ) { if subject == " " { return 0 , errRequired ( " " ) } if err := checkSchemaVersionID ( versionID ) ; err != nil { return 0 , err } path := fmt . Sprintf ( subjectPath + " " , subject , versionID ) resp , err := c . Do ( http . MethodDelete , path , contentTypeSchemaJSON , nil , schemaAPIOption ) if err != nil { return 0 , err } var res int err = c . ReadJSON ( resp , & res ) return res , err }
deleteSubjectSchemaVersion deletes a specific version of the schema registered under this subject.
deleteSubjectSchemaVersion deletes a specific version of the schema registered under this subject .
// # Delete a particular version of a subject // DELETE /api/proxy-sr/subjects/(string: subject)/versions/(versionId: version)