Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Deleting a thesaurus

Focus mode
Deleting a thesaurus - Amazon Kendra

The following procedures show how to delete a thesaurus.

Console
  1. In the left navigation pane, under the index you want to modify, choose Synonyms.

  2. On the Synonym page, select the thesaurus you want to delete.

  3. On the Thesaurus detail page, choose Delete and then confirm to delete.

CLI

To delete a thesarus to an index with the AWS CLI, call delete-thesaurus:

aws kendra delete-thesaurus \ --index-id index-id \ --id thesaurus-id
Python
import boto3 from botocore.exceptions import ClientError kendra = boto3.client("kendra") print("Delete a thesaurus") thesaurus_id = "thesaurus-id" index_id = "index-id" try: kendra.delete_thesaurus( Id = thesaurus_id, IndexId = index_id ) except ClientError as e: print("%s" % e) print("Program ends.")
Java
package com.amazonaws.kendra; import software.amazon.awssdk.services.kendra.KendraClient; import software.amazon.awssdk.services.kendra.model.DeleteThesaurusRequest; public class DeleteThesaurusExample { public static void main(String[] args) throws InterruptedException { KendraClient kendra = KendraClient.builder().build(); String thesaurusId = "thesaurus-id"; String indexId = "index-id"; DeleteThesaurusRequest updateThesaurusRequest = DeleteThesaurusRequest .builder() .id(thesaurusId) .indexId(indexId) .build(); kendra.deleteThesaurus(updateThesaurusRequest); } }
  1. In the left navigation pane, under the index you want to modify, choose Synonyms.

  2. On the Synonym page, select the thesaurus you want to delete.

  3. On the Thesaurus detail page, choose Delete and then confirm to delete.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.