Deleting Logs and Traces for Docker
TLDR Vishal asked how to delete logs and traces for Docker. vishal-signoz provided a solution to truncate tables and shared steps to connect for Docker users.

Mar 06, 2023 (6 months ago)
Vishal
04:56 AMvishal-signoz
05:46 AMkubectl 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;
Vishal
05:47 AMvishal-signoz
05:47 AM
SigNoz Community
Indexed 825 threads (61% resolved)
Similar Threads
Troubleshooting Full Disk Space and Removing Old Data
Romario faced full disk space issue and wanted to remove old data. Ankit guided them through installing ClickHouse client, truncating tables, and using `docker system prune` to clear space.


Cleaning Up Signoz Clickhouse Data without Reinstalling
Muhammed wanted to clean up signoz clickhouse data without losing settings. Srikanth provided a list of queries for truncating tables. Issue was resolved after truncating the 'logs' table.


Removing SigNoz's Own Logs from Dashboard
Geoffrey wanted to remove SigNoz's own logs from the dashboard. nitya-signoz provided a solution referencing an existing issue and a filter for ingesting only desired logs.