Postgresql
PostgreSQL Database Management
Delete PostgreSQL database
This function deletes a PostgreSQL® database.
Important:
When you disable the Postgres role, the system disables this function.
get/Postgresql/delete_database
Request
- Base URLhttps://cpanel-server.tld:2083/execute
- AuthHTTP basic
Query parameters
namestring required
Example:database
The database's name.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "delete_database",
"module": "Postgresql",
"result": {
"status": 1
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.