LexModelBuildingService / Client / delete_utterances

delete_utterances#

LexModelBuildingService.Client.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 GetUtterancesView 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 stored utterances for a specific user. 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 GetUtterancesView operation are deleted after 15 days.

This operation requires permissions for the lex:DeleteUtterances action.

See also: AWS API Documentation

Request Syntax

response = client.delete_utterances(
    botName='string',
    userId='string'
)
Parameters:
  • botName (string) –

    [REQUIRED]

    The name of the bot that stored the utterances.

  • userId (string) –

    [REQUIRED]

    The unique identifier for the user that made the utterances. This is the user ID that was sent in the PostContent or PostText operation request that contained the utterance.

Returns:

None

Exceptions