Hi team, I want to truncate all tables from all da...
# support
e
Hi team, I want to truncate all tables from all databases. But I have this error using command
Copy code
TRUNCATE ALL TABLES FROM signoz_metrics;
Appreciate your help
As context, we recently migrated to 0.88 but could not migrate successfully the old data (only the alerts and dashboards) so to clean up and don't store old not used info , I want to truncate all tables in clickhouse
v
We're on clickhouse 24.1.2. There's a slightly different TRUNCATE command.
e
clickhouse does not have docs per version, I seen to only find the latest, can you share cmd for 24.1.2?
v
Copy code
TRUNCATE TABLE signoz_metrics.<insert table name> ON CLUSTER cluster;
You can run this for all tables
Copy code
SHOW TABLES FROM signoz_metrics;
This might not be the recommended way to do it but it will work! (I'm sure there is some command hidden somewhere)