logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pg_dropcluster - completely delete a PostgreSQL cluster

Author

       Martin Pitt <mpitt@debian.org>

Debian                                             2025-02-20                                  PG_DROPCLUSTER(1)

Description

       This program removes all files that belong to a given PostgreSQL cluster; that includes the data, wal,
       and tablespace directories, 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.

Name

       pg_dropcluster - completely delete a PostgreSQL cluster

See Also

pg_createcluster(1), pg_ctlcluster(1)

Synopsis

pg_dropcluster [--stop] cluster-versioncluster-name

See Also