pg_dropcluster(8)

pg_dropcluster8

Completely delete a postgresql cluster

Usage

pg_dropcluster [--stop] cluster-version cluster-name

Overview

This program removes all files that belong to a given PostgreSQL cluster; that includes the data directory, the log file, and all configuration files that were created by pg_createcluster(1). If the configuration directory (/etc/postgresql/version/cluster) is empty after this, it is removed as well. An empty socket directory other than /var/run/postgresql or /tmp is also removed.

Usually a cluster which still has a running server attached will not be deleted. To override this, the --stop option forces a server shutdown before the files are removed.

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

Author

Martin Pitt <[email protected]>

From postgresql-common 134wheezy4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.