Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_document_classifier

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