public ServiceCall < Void > deleteClassifier ( DeleteClassifierOptions deleteClassifierOptions ) { Validator . notNull ( deleteClassifierOptions , "deleteClassifierOptions cannot be null" ) ; String [ ] pathSegments = { "v3/classifiers" } ; String [ ] pathParameters = { deleteClassifierOptions . classifierId ( ) } ; RequestBuilder builder = RequestBuilder . delete ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments , pathParameters ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "watson_vision_combined" , "v3" , "deleteClassifier" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getVoid ( ) ) ; }
Delete a classifier .