Top
Enterprise Postgres 17 Installation and Setup Guide for Server

4.8.2 Using Server Commands

This section explains how to delete an instance using server commands.

Use the following procedure to delete an instance.

  1. Stop the instance

    Execute the stop mode of the pg_ctl command.

    An example is shown below:

    Example
    $ pg_ctl stop -D /data/inst1
  2. Back up files.

    Before deleting the instance, back up any required files under the data storage destination, the backup data storage destination, and the transaction log storage destination.

  3. Delete the instance

    Use a standard UNIX tool (the rm command) to delete the following directories:

    • Data storage destination

    • Backup data storage destination

    • Transaction log storage destination (if a directory different from the data storage directory was specified)