Deleting old Wordpress database entries from MySQL
PREFACE: Back up your database before removing anything!!!
My Wordpress database was getting pretty big, despite not having all that many posts all things considered.
I figured the biggest issue was drafts wasting space, although it turned out to be “revisions” which make up over half the “post” size of my database. If you make a post and then tweak it 10 times because it doesn’t look right, you’ve just saved that post to your database 11 times. UGH! I’ll get into cleaning those up another day though.
Looking through PhpMyAdmin, the other area I found to be a bit large was the wp_options table. I started looking through all the listings and found a lot of entries that were obviously for plugins I didn’t use anymore. Some I deleted off-the-hop, but others I wasn’t so sure about. Note that a nice fast way of detecting and removing these “possible orphans” is using a Wordpress plugin I came across in my searching called Clean Options. It really helps narrow down what’s not being actively used.
In any case, looking up all these orphans took quite some time, but here’s a list of what I found out about some of them:
ai_ stuff
This appears to be leftovers from the All in One Adsense and YPN plugin
ai_120×240 — ai_120×600 — ai_125×125 — ai_160×600 — ai_180×150 — ai_200×200 — ai_234×60 — ai_250×250 — ai_300×250 — ai_336×280 — ai_468×60 — ai_728×90 — ai_adtype — ai_after — ai_archive — ai_before — ai_cat — ai_channel — ai_channel_ypn — ai_client — ai_client_ypn — ai_color_bg — ai_color_border — ai_color_link — ai_corner_style — ai_dfirst — ai_home — ai_lra — ai_nads — ai_nadspp — ai_network — ai_page — ai_post — ai_space
Yikes, quite a lot. They hurt my eyes in notepad too. I was able to delete them successfully.
–
channel_id
chitika_id
These appear to be Read more…

