Description

This function removes a MySQL® database.

Examples


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

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

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

This function does not return output.

Parameters

ParameterTypeDescriptionPossible valuesExample
dbnamestring

Required

The MySQL database's name.

A valid database name.
database

Returns

This function does not return output.