Description

This function removes a MySQL® database user's access privileges from a database.

Examples


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

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

<cpanel Module="Mysql::deluserdb( $FORM('dbname','dbuser'))">
cpapi1 --user=username Mysql deluserdb database user

This function does not return output.

Parameters

ParameterTypeDescriptionPossible valuesExample
dbnamestring

Required

The MySQL database name.

A valid database name.database
dbuserstring

Required

The MySQL database user.

A valid database username.
user

Returns

This function does not return output.