Description

This function removes a PostgreSQL® database.

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$remove_postgresdb = $cpanel->api1('Postgres','deldb', array('cpusername_dbname') ); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $remove_postgresdb = $cpliveapi->api1('Postgres','deldb', ['cpusername_dbname'] ); # Call the function.

<cpanel Module="Postgres::deldb( $FORM('dbname'))">
cpapi1 --user=username Postgres deldb cpusername_dbusername

This function does not return output.

Parameters

ParameterTypeDescriptionPossible valuesExample
dbnamestring

Required

The database name.

The cPanel account username, an underscore (_), and the database name.

cpusername_dbname

Returns

This function does not return output.