Delete PostgreSQL database

This function deletes a PostgreSQL® database.

Important:

When you disable the Postgres role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
name
required
string

The database's name.

Example: name=database
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Postgresql/delete_database
Request samples
uapi --output=jsonpretty \
  --user=username \
  Postgresql \
  delete_database \
  name='database'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "delete_database",
  • "module": "Postgresql",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}