Comprehend / Client / delete_document_classifier
delete_document_classifier#
- Comprehend.Client.delete_document_classifier(**kwargs)#
Deletes a previously created document classifier
Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be deleted. If an active inference job is using the model, a
ResourceInUseException
will be returned.This is an asynchronous action that puts the classifier into a DELETING state, and it is then removed by a background job. Once removed, the classifier disappears from your account and is no longer available for use.
See also: AWS API Documentation
Request Syntax
response = client.delete_document_classifier( DocumentClassifierArn='string' )
- Parameters:
DocumentClassifierArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) that identifies the document classifier.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
Comprehend.Client.exceptions.InvalidRequestException
Comprehend.Client.exceptions.TooManyRequestsException
Comprehend.Client.exceptions.ResourceNotFoundException
Comprehend.Client.exceptions.ResourceUnavailableException
Comprehend.Client.exceptions.ResourceInUseException
Comprehend.Client.exceptions.InternalServerException