For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete website database user

Permanently deletes a database user from an Agency Plan website database, revoking all access it had. The operation is idempotent: deleting a user that does not exist succeeds without error.

Delete website database user

delete

Permanently deletes a database user from an Agency Plan website database, revoking all access it had.

The operation is idempotent: deleting a user that does not exist succeeds without error.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
website_uidstringRequired

Agency Plan website UID

Example: zpwlGlp19
database_namestringRequired

Full database name as returned by the list databases endpoint.

Example: my_database
database_user_namestringRequired

Database username as returned by the list databases endpoint.

Example: my_user
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
delete/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users/{database_user_name}
DELETE /api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users/{database_user_name} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "message": "Request accepted"
}

Last updated

Was this helpful?