Delete Database

This guide explains how to delete a database instance from the AppsCode console. There are two ways to trigger a deletion — from the Datastore Overview page (bulk or single) or from inside the individual database page. Both methods lead to the same confirmation step.

Warning: Deleting a database is a permanent and irreversible action. Ensure you have a valid backup before proceeding.


1. Getting Started

Navigate to the Datastore section from the left sidebar and select your database engine (e.g., MongoDB). This opens the Datastore Overview page, which lists all database instances in the selected namespace.


2. Deleting from the Datastore Overview

Use this method to delete one or more databases at once directly from the instance list.

Datastore Overview page with a database instance selected and the Delete Selected button highlighted

  1. Select Namespace: Use the Select Namespace dropdown in the top-right to filter instances by namespace if needed.
  2. Select Instance(s): Check the checkbox next to each database instance you want to delete (e.g., mongodb demo).
  3. Delete Selected: Click the red Delete Selected button that appears in the top-right of the Overview table.
  4. Confirm: A confirmation modal will appear asking "Are you sure you want to delete the selected databases?" Click Yes to proceed, or Cancel to abort.

Bulk delete confirmation modal on the Datastore Overview page


3. Deleting from the Database Detail Page

Use this method to delete a specific database while viewing its detail page.

MongoDB database detail page showing the Delete button in the top-right navbar

  1. From the Datastore Overview, click on the name of the database instance you want to delete to open its detail page.
  2. Delete: Click the red Delete button in the top-right corner of the page.
  3. Confirm: A confirmation modal will appear showing the name of the database. Click Yes to permanently delete it, or Cancel to abort.

Delete confirmation modal asking "Do you want to delete mongodb?" with Cancel and Yes buttons

Warning: Clicking Yes immediately and permanently removes the database. There is no undo. Confirm you have a backup before proceeding.


Quick Reference

ActionHow to do it
Delete one or more databases at onceDatastore Overview → check instance(s) → Delete Selected
Delete a specific databaseOpen the database detail page → click Delete (top-right)
Confirm deletionConfirmation modal → click Yes
Abort deletionConfirmation modal → click Cancel or