TLDR 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.
Srikanth
Do you want to truncate the tables? That would just remove the existing data, but the schemas etc. will all be there.
I only want to trucate existing log, traces and metrics
Srikanth there are docs on how to do that, or can you help me with the queries to run on database shards?
Srikanth I ran queries but nothing changed
Srikanth Can you help me with that?
That’s surprising, can you run the queries in shard with `distributed_` in the truncate query?
I ran all of the queries in all of the shards
I don’t know what the reason could be. I will have to search.
fixed by truncating `logs` table
> That’s surprising, can you run the queries in shard with `distributed_` in the truncate query? Ah, in this message, I actually meant *without distributed_* . I see it now.
Muhammed
Mon, 06 Mar 2023 08:45:14 UTCHow can I clean up signoz clickhouse and start over without removing and installing chart again? I don't want to loss settings