Description
This function removes a MySQL® database.
Warning:
- UAPI (recommended) —
Mysql::delete_database
— This function deletes a MySQL® database. - cPanel API 2 —
MysqlFE::deletedb
— This function deletes a database.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
dbname |
string |
Required The MySQL database's name. |
A valid database name. |
database |
Returns
This function does not return output.