Created on
11-24-2025
02:10 AM
Edited on
11-25-2025
02:43 AM
By
Jean-Philippe_P
| Description | This article describes how to delete data from the Clickhouse database. |
| Scope | FortiSIEM, Clickhouse. |
| Solution |
The steps below are to be followed in order to delete data quickly from the Clickhouse database, usually to release disk space.
Note: It is very important to note that the data will be removed definitively, and hence, cannot be recovered after following the steps below:
clickhouse-client exit
for partition in `cat /tmp/paritions.txt`; do clickhouse-client -q "alter table fsiem.events_replicated drop partition $partition"; done
clickhouse-client for partition in `cat /tmp/paritions.txt`; do clickhouse-client -q "alter table fsiem.events_replicated drop partition $partition"; done |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.