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_utterances

delete_utterances(**kwargs)

Deletes stored utterances.

Amazon Lex stores the utterances that users send to your bot. Utterances are stored for 15 days for use with the ListAggregatedUtterances operation, and then stored indefinitely for use in improving the ability of your bot to respond to user input..

Use the DeleteUtterances operation to manually delete utterances for a specific session. When you use the DeleteUtterances operation, utterances stored for improving your bot's ability to respond to user input are deleted immediately. Utterances stored for use with the ListAggregatedUtterances operation are deleted after 15 days.

See also: AWS API Documentation

Request Syntax

response = client.delete_utterances(
    botId='string',
    localeId='string',
    sessionId='string'
)
Parameters
  • botId (string) --

    [REQUIRED]

    The unique identifier of the bot that contains the utterances.

  • localeId (string) -- The identifier of the language and locale where the utterances were collected. The string must match one of the supported locales. For more information, see Supported languages.
  • sessionId (string) -- The unique identifier of the session with the user. The ID is returned in the response from the RecognizeText and RecognizeUtterance operations.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • LexModelsV2.Client.exceptions.ValidationException
  • LexModelsV2.Client.exceptions.ThrottlingException
  • LexModelsV2.Client.exceptions.InternalServerException