Purge old page versions
purge_page_historyPermanently delete page versions older than a specified cutoff across the entire wiki, freeing up storage. Requires a confirmation token to prevent accidental data loss.
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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |