# DELETE /databases/users/{name}

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the databases group.

Drop a database user

- Who may call it: administrator, reseller, customer
- Token scope, any of: databases, all
- Answers: 200 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

- [urbestack-database-user-del](https://urbestack.com/docs/commands/urbestack-database-user-del.md): Drops a database user and its grants from UrbeStack and MariaDB, including accounts created by hand for other hosts.

## Parameters

- `name` (path, DatabaseName, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X DELETE "$API/databases/users/alice" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "deleted": true,
  "name": "alice"
}
```

## Errors

- 400: --name is required
- 400: A <what> name is 1 to 64 letters, digits or underscores
- 401: Authentication required
- 404: No such database user: <name>
