COMMAND NAME: gpdeletesystem

Deletes a Apache Cloudberry system that was initialized 
using gpinitsystem.


*****************************************************
SYNOPSIS
*****************************************************

gpdeletesystem -d <coordinator_data_directory> [-B <parallel_processes>] 
[-f] [-l <logfile_directory>] [-D] 

gpdeletesystem -? 

gpdeletesystem -v


*****************************************************
DESCRIPTION
*****************************************************

The gpdeletesystem script will perform the following actions:

* Stop all postmaster processes (the segment instances and coordinator instance).

* Delete all data directories.

Before running this script, you should move any backup files
(created by gp_dump) out of the coordinator and segment data directories.

This script will not uninstall the Apache Cloudberry software.


*****************************************************
OPTIONS
*****************************************************

-F <etcd-configuration>

ETCD configuration. Used to connect ETCD and delete gp_segment_configuration.

-d <coordinator_data_directory>

Used to specify coordinator host data directory. When this parameter is specified 
it overrides the value of environment variable COORDINATOR_DATA_DIRECTORY. If not
specified, coordinator data directory is read from environment variable 
COORDINATOR_DATA_DIRECTORY.


-B <parallel_processes>

The number of segments to delete in parallel. If not specified, the 
script will start up to 60 parallel processes depending on how many 
segment instances it needs to delete.


-f (force)

Force a delete even if backup files are found in the data directories. 
The default is to not delete Apache Cloudberry instances if backup 
files (created by gp_dump) are present.


-l <logfile_directory>

The directory to write the log file. Defaults to ~/gpAdminLogs.


-D (debug)

Sets logging level to debug.


-? (help)

Displays the online help.


-v (show script version)

Displays the version, status, last updated date, and check sum of this script.


*****************************************************
EXAMPLES
*****************************************************

Delete a Apache Cloudberry system:

gpdeletesystem -d /gpdata/gp-1


Delete a Apache Cloudberry system even if backup files are present:

gpdeletesystem -d /gpdata/gp-1 -f


*****************************************************
SEE ALSO
*****************************************************

gpinitsystem, gp_dump

