Docs Menu

Docs HomeMongoDB Atlas

Create, View, and Drop Databases

On this page

  • Required Roles
  • Create a Database
  • View Databases
  • Drop a Database

You can use the Atlas UI to manage the databases in your database deployments.

The following table describes the roles required to perform various actions to a database in the Atlas UI:

Action
Required Role(s)
Create Databases

One of the following roles:

View Databases
Drop Databases

One of the following roles:

To create a database through the Atlas UI:

1
2
3

Enter the Database Name and the Collection Name to create the database and its first collection.

For more information on MongoDB database names and collection names, see Naming Restrictions.

4

Select whether the collection is a capped collection. If you select to create a capped collection, specify the maximum size in bytes.

5

Select whether the collection is a time series collection. If you select to create a time series collection, specify the time field and granularity. You can optionally specify the meta field and the time for old data in the collection to expire.

6

Upon successful creation, the database and the collection appears in the Atlas UI.

From the Collections tab, you can view the databases and collections in the deployment. Atlas UI shows the databases in the left pane:

Screenshot highlighting databases in Atlas UI.

To drop a database, including all its collections, through the Atlas UI:

1

Either select or hover of the database to drop and click on its trash can icon.

2

Confirm by typing the name of the database, and click Drop.

←  Interact with Your DataCreate, View, Drop, and Shard Collections →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.