Description

This function removes a PostgreSQL® database user.

Examples


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

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

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

This function does not return output.

Parameters

ParameterTypeDescriptionPossible valuesExample
userstring

Required

The database user.

The cPanel username, an underscore (_), and the database user's name.

cpusername_dbusername

Returns

This function does not return output.