This section explains how to delete an instance using server commands.
Use the following procedure to delete an instance.
Stop the instance
Execute the stop mode of the pg_ctl command.
An example is shown below:
$ pg_ctl stop -D /data/inst1
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.
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)