Delete User
Deletes a ClickHouse user in a specific cluster.
Delete a ClickHouse user
Provide the API with a cluster slug and a name to remove a user in that cluster.
- Curl
- Python
curl -X 'DELETE' \
'https://api.gigapipe.com/v1/clusters/<your_cluster_slug>/users/?username=<username>' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <your_access_token>'
# Payload response ::Dictionary
{
"message": "User <username-test> deleted."
}
response = gigapipe_client.clickhouse.delete_user(
cluster_slug="your_cluster_slug",
username="username-test"
)
# Payload response ::Dictionary
{
"message": "User <username-test> deleted."
}
Parameters
Attributes
cluster_slug ::String
The cluster slug
username ::String
The username of the user you want to delete
Response
Attributes
message ::String
A basic message response