# gel database wipe

> Warning: This command is deprecated in Gel. Use [gel branch wipe](https://docs.geldata.com/reference/using/cli/gel_branch/gel_branch_wipe.md#ref-cli-gel-branch-wipe) instead.

Destroy the contents of a [database](https://docs.geldata.com/reference/datamodel/branches.md#ref-datamodel-databases)

```cli-synopsis
gel database wipe [<options>]
```

> Note: EdgeDB 5.0 introduced [branches](https://docs.geldata.com/reference/datamodel/branches.md#ref-datamodel-branches) to replace databases. This command works on instances running versions prior to EdgeDB 5.0. If you are running a newer version of EdgeDB or Gel, you will instead use [gel branch wipe](https://docs.geldata.com/reference/using/cli/gel_branch/gel_branch_wipe.md#ref-cli-gel-branch-wipe).

## Description

`gel database wipe` is a terminal command equivalent to [`reset schema to initial`](https://docs.geldata.com/reference/datamodel/migrations.md#statement::reset-schema-to-initial).

The database wiped will be one of these values: the value passed for the `--database`/`-d` option, the value of `GEL_DATABASE`, or main. The contents of the database will be destroyed and the schema reset to its state before any migrations, but the database itself will be preserved.

## Options

The `database wipe` command runs in the Gel instance it is connected to. For specifying the connection target see [connection options](https://docs.geldata.com/reference/using/cli/gel_connopts.md#ref-cli-gel-connopts).

`--non-interactive`:
Destroy the data without asking for confirmation.



