Repository navigation
Deleting spurious data #5046
|
I'd like to delete some spurious data from the Clickhouse DB, specifically: A specific URL on a specific day. Does anybody have any hints where to start with this or potential gotchas. The background is that when upgrading to the version of Plausible that moved the exclusions filters server-side, I didn't set it up correctly, so ended up with thousands of entries to |
Replies: 1 comment 1 reply
|
👋 @adamu You might be able to connect to ClickHouse and delete these records there: $ cd plausible-ce
$ docker compose exec plausible_events_db clickhouse client -d plausible_events_db:) delete from events_v2 where timestamp between '2025-10-15' and '2025-10-16' and pathname = '/w/index.php';
:) delete from sessions_v2 where start between '2025-10-15' and '2025-10-16' and pathname = '/w/index.php';Please double check these queries before executing. Maybe with a corresponding SELECT statement. Note that the dates here are GMT, and the date in URL is local for the site timezone. |
👋 @adamu
You might be able to connect to ClickHouse and delete these records there:
Please double check these queries before executing. Maybe with a corresponding SELECT statement. Note that the dates here are GMT, and the date in URL is local for the site timezone.