Get your free beta license ↗
API operation · databases group
DELETE

/databases/users/{name}

First published 3 Oct 20260.1.0Unchanged since publication

Drop a database user

Who may call it
AdministratorResellerCustomer
Token scope, any of
databasesall
Answers200 OK

UrbeStack removes the database user and its grants from UrbeStack and from every MariaDB host, including hosts added directly in MariaDB. The operation preserves the databases the user could access. The response includes name and sets deleted to true.

The API returns 400 for a name outside the allowed format of 1 to 64 ASCII letters, digits, or underscores. A missing database user or one outside the caller's permitted accounts returns 404.

As a command

Run as root on the server

Parameters

namepath ·DatabaseNameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/databases/users/alice" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "deleted": true,
  "name": "alice"
}

Errors

4 errors, each a status and a sentence
400--name is required
400A <what> name is 1 to 64 letters, digits or underscores
401Authentication required
404No such database user: <name>
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/delete-databases-users-name/