View Source Plausible.Purge (Plausible v0.0.1)

Deletes data from a site.

Stats are stored on Clickhouse, and unlike other databases data deletion is done asynchronously.

Summary

Functions

Deletes imported stats from Google Analytics, and clears the stats_start_date field.

Move stats pointers so that no historical stats are available.

Functions

Link to this function

delete_imported_stats!(site)

View Source
@spec delete_imported_stats!(Plausible.Site.t()) :: :ok

Deletes imported stats from Google Analytics, and clears the stats_start_date field.

Link to this function

delete_native_stats!(site)

View Source
@spec delete_native_stats!(Plausible.Site.t()) :: :ok

Move stats pointers so that no historical stats are available.