Thread Starter
Mikey_
(@mikeyuen)
I played around with phpadmin and discovered the following queries:
SELECT * FROM mysqldatabase
.wp_postmeta
WHERE (CONVERT(meta_key
USING utf8) LIKE ‘apple_news_%’)
This allowed me to delete all the metadata for every post.
SELECT * FROM mysqldatabase
.wp_options
WHERE (CONVERT(option_name
USING utf8) LIKE ‘apple_news_%’)
This allowed me to remove the plugin options, but I decided to leave them alone in case I install it again.
Be sure you make a backup of the database before modifying it.
The plugin intentionally doesn’t delete metadata associated with posts on uninstall for a few reasons:
1) This metadata is not easily reproducible once deleted, especially the metadata that links a WordPress post to an item in Apple News. Apple News does not maintain an association with WordPress post IDs, so it’s not possible to recreate these association if deleted.
2) On larger sites, deleting that much postmeta in bulk could easily cause timeouts.
The approach you took to delete via the DB is the correct one.
Thread Starter
Mikey_
(@mikeyuen)
Thank you for the clarification, @kevinfodness. Appreciate the follow-up