https://signoz.io logo
#support
Title
# support
v

Vishal Pradhan

03/06/2023, 4:56 AM
@support how to delete all logs and traces for the docker ?
v

Vishal Sharma

03/06/2023, 5:46 AM
If you are able to connect to clickhouse then you can truncate tables:
Copy code
kubectl exec -n platform -it chi-my-release-clickhouse-cluster-0-0-0 -- sh

clickhouse client

// run below clickhouse queries to trunacte

truncate table signoz_logs.logs;

truncate table signoz_traces.signoz_index_v2;
truncate table signoz_traces.signoz_spans;
truncate table signoz_traces.signoz_error_index_v2;
truncate table signoz_traces.durationSort;
truncate table signoz_traces.top_level_operations;
truncate table signoz_traces.usage_explorer;
v

Vishal Pradhan

03/06/2023, 5:47 AM
what about docker then?
v

Vishal Sharma

03/06/2023, 5:47 AM
If you are using docker then try below commands to connect: https://signoz.io/docs/operate/clickhouse/connect-to-clickhouse/#for-docker-users
130 Views