Purge old page versions
purge_page_historyPurge page history older than a specified cutoff across the wiki. Confirm with a token to permanently delete old versions.
Instructions
Deletes stored page versions older than a cutoff, across the whole wiki. The versions are gone permanently — this is the one maintenance operation that destroys data. Requires a confirmation token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| older_than | Yes | ISO-8601 duration cutoff, as Wiki.js’ own admin UI offers: P1D (a day), P1M, P3M, P6M, P1Y, P2Y, P3Y. Versions older than this are deleted. | |
| confirm_token | No | Token from this tool’s previous, unconfirmed call. Omit it to receive one. |