---
name: "destroydb"
section: "7l"
platform: "linux"
package: "postgres95"
version: "1.09-1"
release: "Debian 1.3 (Bo)"
platforms: ["linux"]
url: "https://new.carta.tech/destroydb/7l"
---

# destroydb(7l)

destroy an existing database

## NAME

drop database — destroy an existing database

## SYNOPSIS

```
drop database dbname
```

## DESCRIPTION

**Drop database** removes the catalog entries for an existing database and deletes the directory containing the data.  It can only be executed by the database administrator (see *createdb*(l) for details).

## SEE ALSO

create database(l), [destroydb(1)](/destroydb/1.md).

## BUGS

This query should  **NOT** be executed interactively.  The  [*destroydb*(1)](/destroydb/1.md) script should be used instead.
