Hi Community, I am going to delete 6k posts from author xxxx. What is the best practice for SEO in this case? Redirect 404 to the homepage? Please advice
I'd unpublish them and send visitors to a 404 page that then gives "perhaps you might like this instead" recommendations based on the original content.
Good advice, how can I do the second part? I mean the customized 404 page that gives: perhaps you might like this instead
The 404 is easy Pull apart a plugin that does the recommendation and create your own version that looks at the unpublished post and finds the comparison. The main thing is that the 404 needs to know what the user requested so it can pull up the right unpublished content when it's doing it's compare. Most compare scripts are at the bottom of a published post but it shouldn't be much of a rewrite.
you can redirect all of your pages to your homepage using 301 redirect. If you are on WordPress consider using plugin.
If you have existing posts with relevant content to those being removed it's better to 301. Especially if there are any inbound links to the ones being removed, this will save and pass some "link juice". Why would someone do this? Google gives your site a base "quality score" and having poor performing posts can/will lower this. Most do not realize removing posts with little to no traffic, high bounce rate, low "time on site" pages, which is poor quality in most cases will actually increase site rankings after they have been removed. Because this will raise their overall base "quality score". This is one of the quickest/easiest boosts you can get. Need to add, this will help wasting your "crawl budget" on poor pages as well.
6000 posts is alot. If it is a duplicate subject and the posts are cannibalising each other then I would do a cannibalization analysis and and redirect the ones that Google is seeing as the same content in the posts and so is splitting the rankings. Ahrefs has a great tool for this. Cannolize (not redirect) the lower ranking ones in the same subject to the higher ranking post. If the posts are low quality or no traffic redirect the urls to the home page and delete.