Skip to main content

Administrating MarkLogic Server

Clearing a Database

You can clear all of the forest content from the database using the Admin Interface. Clearing a database deletes all of the content from all of the forests in the database, but leaves the database configuration intact.

To clear all data from a database, follow these steps:

  1. Click the Databases icon on the left tree menu.

  2. Decide which database you want to clear.

  3. Click the database name, either on the tree menu or the summary page.

    The Database Configuration page appears.

  4. Click the Clear button on the Database Configuration page.

    A confirmation message displays.

  5. Confirm that you want to clear the forest data from this database and click OK.

Clearing a database is a “hot” admin task; the changes take effect immediately.