Skip to content

Public WordPress documentation

wp-cli

Purge revisions, but keep the defined amount

May 28, 2024 by public documentation

This will keep the defined amount. All other instructions merely delete all revisions and/or use SQL … ending up with many orphaned records on other tables. https://github.com/trepmal/wp-revisions-cli

Categories Tools Tags revisions, wp-cli Leave a comment
Filtered (1)
Filters
  • Reset all×
  • revisions×

1 post found

Category
Tags
Show (1)
Cancel

Recent Comments

No comments to show.
© 2026 Public WordPress documentation • Built with GeneratePress