Purging old federated content

This seems to work well:

Post.where("posts.created_at < ?", Date.today - 365.days).where(public: true).includes(:author).where(people: {owner_id: nil}).in_batches(of: 100).destroy_all
2 Likes