Deleting a role
Written by
Updated at July 24, 2026
If you have a ClickHouse® role, you can delete it.
Removing a ClickhouseRole resource also deletes the role in ClickHouse®. For users the role was assigned to the link will become invalid. Update ClickhouseUser resources and remove the role resource name from spec.roles.
Using the CLI
- Find the name of the role in the list of project roles:
kubectl get clickhouserole -n <project_name>. - Delete the role resource:
kubectl delete clickhouserole <resource_name> -n <project_name>.
Using the management console
- If you have not opened a project yet, select one.
- In the left-hand menu, select ClickHouse® Clusters.
- Select a cluster.
- Navigate to the Roles tab.
- Choose the role.
- Click Delete.
- Confirm the deletion.