I have a few sites that I wish to slim down. The sites have been active for a long time and there is really old post data that is no longer relevant. I wish to delete those (older then 3 years) and there meta data, their attached media, revisions and including W3 cache files. Also a database cleanup can help a bit.
Which method is best?
1. Plugin 'Bulk delete' with pro addon delete 'delete attachment'
2. wp-cli post delete
3. WP api function