How to Destroy DigitalOcean Knowledge Bases
Validated on 15 Apr 2026 • Last edited on 27 Apr 2026
DigitalOcean Knowledge Bases let you store, index, and retrieve data from private files, websites, Spaces buckets, and other sources to power retrieval-augmented generation with your own content.
Destroy a Knowledge Base Using the Control Panel
When you destroy a knowledge base, all of its data sources and indexed data is irreversibly and permanently deleted. Any DigitalOcean AI agents using this knowledge base are automatically redeployed to remove it from their resources. This may affect their performance.
To destroy a knowledge base, go to the DigitalOcean Control Panel, in the left menu, click DATA SERVICES, and then click Knowledge Bases.
Then, find the knowledge base you want to destroy, on the right of it, click …, and then click Destroy to open the Destroy knowledge base window.
To confirm, enter the name of your knowledge base, and then click Destroy.
Once a knowledge base is destroyed, its indexing job logs are no longer available. If you need to keep activity history for record-keeping or debugging, download all relevant CSV files from the Activity tab before destroying the knowledge base.
The OpenSearch database storing your knowledge base isn’t destroyed along with it. To destroy your OpenSearch database, see How to Destroy OpenSearch Clusters.
Destroy a Knowledge Base Using the API
To destroy a knowledge base using the DigitalOcean API, provide its unique identifier. You can retrieve available knowledge bases and their IDs using the /v2/gen-ai/knowledge_bases endpoint.