Skip to content

Failed to delete data source from Knowledge Base

0

When trying to delete data source, I get this error message:

'Unable to delete data from vector store for data source with ID CEJWXOWCXK. 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.'

Tried to change dataDeletionPolicy to RETAIN but it doesn't allow me to do that since it is in status 'Delete unsuccessful'

1 Answer
0

This typically happens when there are permission issues or configuration problems with the vector store. Here's how to address this:

  1. First, check the current status of your data source: bash aws bedrock-agent get-data-source
    --knowledge-base-id YOUR_KNOWLEDGE_BASE_ID
    --data-source-id CEJWXOWCXK

  2. Try updating the data deletion policy to RETAIN before deleting: bash aws bedrock-agent update-data-source
    --knowledge-base-id YOUR_KNOWLEDGE_BASE_ID
    --data-source-id CEJWXOWCXK
    --data-deletion-policy RETAIN

  3. Then attempt to delete the data source again: bash aws bedrock-agent delete-data-source
    --knowledge-base-id YOUR_KNOWLEDGE_BASE_ID
    --data-source-id CEJWXOWCXK

If the issue persists, check that: • The IAM role used by your Knowledge Base has sufficient permissions • Your vector store configurations are correct • The service role can access and modify the vector store

AWS

answered a year 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.