- Newest
- Most votes
- Most comments
I understand your frustration with being unable to delete your Amazon Bedrock Knowledge bases and continuing to incur charges. Here's a step-by-step guide to help you resolve this issue:
-
Open the Amazon Bedrock console and navigate to the Knowledge bases section.
-
Select the Knowledge Base you're trying to delete.
-
For each data source in the DELETE_UNSUCCESSFUL state:
- Choose to edit the data source
- Go to Advanced settings
- Change the Data deletion policy to RETAIN
- Save the changes
-
After changing the data deletion policy, attempt to delete the data source again.
-
Once the data source is successfully deleted, try deleting the Knowledge Base.
If you're still encountering issues after following these steps, it may be due to underlying problems with permissions or the vector database. In this case:
-
Ensure the IAM service role associated with the Knowledge Base has the necessary permissions for deletion operations.
-
If you've already deleted the vector database (OpenSearch or Pinecone), you might need to temporarily recreate it with the same name to complete the deletion process.
-
Check your S3 buckets for any datasets you uploaded for the Knowledge Base and delete them if no longer needed.
If the problem persists, it's advisable to contact AWS Support. Even without a paid support plan, you can open a case under "Account and billing" for free assistance with this issue.
Remember to monitor your AWS Cost Explorer and Billing dashboard regularly to track ongoing charges and ensure all unnecessary resources are properly terminated.
If you're using the root user and still facing issues, try switching to another admin user, as some users have reported success with this approach.
Lastly, if all else fails, keep attempting the deletion process periodically, as there have been instances where the issue resolved itself over time, possibly due to background fixes by AWS.
Sources
Deleting Knowledgebase - previous advice not working | AWS re:Post
Resolve the "Failed to delete knowledge base" error in Bedrock | AWS re:Post
Bedrock Knowledge base - Delete unsuccessful | AWS re:Post
When deleting a knowledge base or data source, the vector store itself is not automatically deleted, which can result in continued charges. The data deletion policy for your data source can be set to either "Delete" (which deletes the data but not the vector store) or "Retain" (which keeps all data).
If you're experiencing deletion issues, try these steps:
- Check your vector store configurations and permissions
- If deletion fails, consider updating the dataDeletionPolicy of the data source to RETAIN and retry the request
- Ensure you've deleted both the OpenSearch Service and S3 used for search to stop the billing
Kindly refer the Knowledge Center article on How do I resolve the “Failed to delete knowledge base” error in Amazon Bedrock?
If you continue to experience billing issues after following these steps and successfully deleting the OpenSearch DB and Index, it's recommended to contact AWS Support.
Relevant content
- asked 5 months ago
- asked 10 months ago
- asked a year ago
- AWS OFFICIALUpdated 5 months ago