---
name: "cleardbdir"
section: "1"
platform: "linux"
package: "postgresql"
version: "6.5.3-27"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/cleardbdir"
---

# cleardbdir(1)

completely destroys all database files

## NAME

cleardbdir - completely destroys all database files

## SYNOPSIS

**cleardbdir**

## DESCRIPTION

*cleardbdir* destroys all the database files.  It is used only by the  Postgres super-user before re-initializing the entire installation for a particular site.  Normal database users should never use this command.

The Postgres super-user should ensure the *postmaster* process is not running before running cleardbdir.

## SEE ALSO

[initdb(1)](/initdb/1.md)
