Description

This function removes a MySQL® database user.

Examples


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

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

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

This function does not return output.

Parameters

ParameterTypeDescriptionPossible valuesExample
dbuserstring

Required

The MySQL user's name.

A valid database username.
username

Returns

This function does not return output.