man pg_dropcluster (Administration système) - completely delete a PostgreSQL cluster
NAME
pg_dropcluster - completely delete a PostgreSQL cluster
SYNOPSIS
pg_dropcluster [--stop] cluster-version cluster-name
DESCRIPTION
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 (CW/etc/postgresql/versionCW/cluster) is empty after this, it is removed as well.
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.
SEE ALSO
AUTHOR
Martin Pitt <mpitt@debian.org>