Cannot delete knowledge base

2

Hi all!

I've been playing with Amazon Bedrock, trying to create a simple chatbot. Using Vector engine Amazon OpenSearch Serverless racked up a billing of 80€ in cca 10 days, and it continues to rack that amount up. I started deleting everything I could, but I cannot delete two knowledge bases that I have in Bedrock. I also cannot delete the data source as well. I did manage to delete the actual files on S3 bucket, and the bucket too.

Failed to delete knowledge base - V2WLJG2B4Y Unable to delete data from vector store for data source with ID URQPGDEC0O. Check your vector store configurations and permissions and retry your request. If the issue persists, consider updating the dataDeletionPolicy of the data source to RETAIN and retry your request.

How can I delete these knowledge bases that are using OpenSearch Serverless Vector engine?

2 Answers
1

I managed to delete one of the two knowledge bases. I did that by going to the datasource of the knowledge base, and changing its delete policy from DELETE to RETAIN.

However, when I try to do the same for the other datasource, it says the following: undefined The role with name AmazonBedrockExecutionRoleForKnowledgeBase_d2j7q cannot be found.

Please provide further instructions.

Thank you!

answered a year ago
0

Hello, I just resolved the issue and I will try to be as detailed as possible.

KB - Knowledge base

  • Delete your Agent. Steps can be found here
  • Skip the first step if you have no agents
  • On the KB dashboard, toggle the radio button next to your knowledge base's name. This should enable the "Edit" button. Enter image description here
  • Click "Edit" to open a screen that allows you to edit the properties of your knowledge base
  • In the edit screen, go to the data source section. Again, toggle the button next to the data source to enable editing. Enter image description here
  • You should see this screen Enter image description here
  • Verify that your path is correct. It should follow this structure: Amazon Bedrock > KB > name-of-knowledge-base > name-of-data-source. Like soEnter image description here
  • Click "Advanced Settings" & change this to "Retain"![Enter image description here] (/media/postImages/original/IMOsckO5CsT6KoAzIyDd7bug) > "Submit"
  • Go back to your KB dashboard and follow the prompts to delete the KB

I truly hope this helps! If it doesnt, submit a support ticket! :)

answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions