Time for action – deleting a database using the Management Studio

You will learn how to delete a database from RavenDB using the Delete action from the contextual menu in the Databases screen.

  1. In the Management Studio, click on the Databases link to display the Databases screen.
  2. Select the Sales database and right-click on it to display the contextual menu and click on Delete.
  3. Check the option case Physically delete all database data to delete all the database data and its folders.
    Tip

    By clicking on the Export button, you can export the database documents before deleting it.

What just happened?

In steps 1 and 2, we selected in the Management Studio the Sales database in order to delete it.

In step 3, we deleted the database and all its related files and folders.

By checking the option Physically delete all database data, RavenDB will delete all database data and folders containing the database and all its related information, such as logs and indexes, from your computer. Otherwise, the files will remain but you will not be able to access them from the server.