Delete a data source from your Amazon Bedrock knowledge base
You can delete or remove a data source that you no longer need or use for your knowledge base.
Choose the tab for your preferred method, and then follow the steps:
- Console
-
To delete a data source
-
Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/
. -
In the left navigation pane, choose Knowledge bases.
-
In the Data source section, select the radio button next to the data source that you want to delete.
-
Choose Delete.
-
A green banner appears when the data source is successfully deleted.
Note
Your data deletion policy for your data source is set to either "Delete" (deletes all data when you delete your data source, but doesn't delete the vector store itself) or "Retain" (retains all data when you delete your data source). If you delete a data source or knowledge base, the vector store itself is not deleted. If the data source data deletion policy is set to "Delete", it's possible for the data source to unsuccessfully complete the process of deletion due to issues with the configuration or access to the vector store. You can check the "DELETE_UNSUCCESSFUL" status to see the reason why the data source could not successfully delete.
-
- API
-
To delete a data source from a knowledge base, send a DeleteDataSource request, specifying the
dataSourceId
andknowledgeBaseId
.Note
Your data deletion policy for your data source is set to either
DELETE
(deletes all data when you delete your data source, but doesn't delete the vector store itself) orRETAIN
(retains all data when you delete your data source). If you delete a data source or knowledge base, the vector store itself is not deleted. If the data source data deletion policy is set toDELETE
, it's possible for the data source to unsuccessfully complete the process of deletion due to issues with the configuration or access to the vector store. You can viewfailureReasons
if the data source status isDELETE_UNSUCCESSFUL
to see the reason why the data source could not successfully delete.