Remove outdated node revisions to improve site performance.
- Enable the module and dependencies
- Update the settings page /admin/config/content/revision-trim
- Enable file_lock module (if needed)
- Configure Elysia Cron to run revision_trim_delete_revisions at some interval
- Wait for cron to run or use admin settings form to force run
Drupal core behavior is on revision delete to remove any files that don't have any more associations to nodes/paragraphs. If you want to keep these files, use the file_lock module with the below settings.
File Lock module
- /admin/config/media/lock
- lock files by pattern
- pattern: *
- hooks: all file_save actions (insert and update)