Wordpress Post Status Inherit - Delete

My client has a Wordpress site where the DB is 300MB large.  I believe this is due to over 10,000 posts in the DB that are listed as Post Status, Inherit.  Can I delete these and what is the best way to do it?
livewirewebsolutionsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineDon't talk to me.Commented:
You can delete them, but there's more going on with those than you think:

http://adamsoucie.com/why-are-featured-images-marked-with-the-inherit-post-status/

The inherit status is used for post attachments and featured images as well as post revisions.  Revisions are ok to delete, the rest aren't.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
livewirewebsolutionsAuthor Commented:
Hi Jason,

So, can I search my database for Post Status - Inherit and Post Type - revision and delete all of these??
Jason C. LevineDon't talk to me.Commented:
I wouldn't delete "inherit" because it controls certain types of post attachments.  Revisions are probably safe.

In all honesty, you might want to do this via a plugin and not manually:

https://wordpress.org/plugins/wp-clean-up-optimizer/

is what I have used in the past.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

livewirewebsolutionsAuthor Commented:
I just downloaded the plugin.  It gives me the option to empty 28800 revisions.  Should I do this or will it not cause me the same issues as my question above?  Won't these revisions also be inherit?
Jason C. LevineDon't talk to me.Commented:
Not necessarily.  The plugin should be looking at transients and revisions but keeping that which is supposed to be displayed.

Obviously you should always make a backup prior to any kind of delete action.
livewirewebsolutionsAuthor Commented:
I went ahead and removed all the revisions with the plugin and it worked perfectly. Thanks again Jason.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.