---
title: "Delete a role"
method: DELETE
path: "/project/{project}/service/{service_name}/clickhouse/role/{role_uuid}"
tags: ["Service:_ClickHouse"]
---

# Delete a role

`DELETE /project/{project}/service/{service_name}/clickhouse/role/{role_uuid}`

## Request

- Base URL: `https://api.aiven.io/v1`
- URL: `https://api.aiven.io/v1/project/{project}/service/{service_name}/clickhouse/role/{role_uuid}`
- Auth: HTTP bearer and OAuth 2
  - Authorization code: `https://console.aiven.io/oauth/authorize`
  - Token URL: `https://api.aiven.io/v1/oauth2/token` scopes: `services:write`

Deletes a role from ClickHouse.

## Path parameters

- `project` string, required
- `service_name` string, required
- `role_uuid` string, required

## Response `200`

Response

- ServiceClickHouseRoleDeleteResponse: ServiceClickHouseRoleDeleteResponse
  - `errors` object[]: List of errors occurred during request processing
    - `message` string, required: Printable error message
    - `more_info` string: URL to the documentation of the error
    - `status` integer, required: HTTP error status code
  - `message` string: Printable result of the request

## Changes

- **2026-07-26** `b262b3b4c127`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/aiven/apis/aiven-api-documentation/changes/project/:project/service/:service_name/clickhouse/role/:role_uuid/delete.md)

---

[API](https://skmtc.dev/aiven/apis/aiven-api-documentation.md) - [All operations](https://skmtc.dev/aiven/apis/aiven-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aiven/apis/aiven-api-documentation/revisions/562453405db0?raw)
