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
0

Deletes a knowledge base. Before deleting a knowledge base, you should disassociate the knowledge base from any agents that it is associated with by making a DisassociateAgentKnowledgeBase request.

To delete a knowledge base :

  1. Before the following steps, make sure to delete the knowledge base from any agents that it's associated with. To do this, carry out the following steps:
  • From the left navigation pane, select Agents.
  • Choose the Name of the agent that you want to delete the knowledge base from.
  • A red banner appears to warn you to delete the reference to the knowledge base, which no longer exists, from the agent.
  • Select the radio button next to the knowledge base that you want to remove. Select More and then choose Delete.
  1. Sign in to the AWS Management Console, and open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/.

  2. From the left navigation pane, select Knowledge base.

  3. Choose a knowledge base or select the radio button next to a knowledge base. Then choose Delete.

  4. Review the warnings for deleting a knowledge base. If you accept these conditions, enter delete in the input box and select Delete to confirm.

  5. To fully delete the vector embeddings for your knowledge base, you need to delete the vector index containing the data embeddings.

You can see this documentation to know more: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-manage.html https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteKnowledgeBase.html

answered a month ago
  • Thanks for the answer, but I have no agents associated with existing knowledge bases...

0

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!

sigur
answered a month 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