Validated on 28 Jun 2021 • Last edited on 7 Jun 2023
ha | tag
MongoDB is a source-available cross-platform document-oriented database program for high-volume storage. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas.
Deleting a database cluster permanently and irreversibly destroys the cluster, its contents, and its automated backups.
Destroy a Database Cluster Using the CLI or API
How to Create a Database Using the DigitalOcean CLI
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
delete_resp = client.databases.destroy_cluster(database_cluster_uuid="a7abba8")
Destroy a Database Cluster Using the Control Panel
To destroy a database cluster from the control panel, open the cluster’s More menu. Click Destroy to go to the cluster’s Settings page.
In the Destroy this database cluster section at the bottom of the page, click the Destroy button. This opens a Destroy database cluster confirmation window.
To permanently destroy the cluster, type or copy and paste the name of the database cluster into the text field, then click Destroy.
Warning
Destroying a database cluster destroys the backups of that database. Make sure you download any important data before you destroy a cluster.