Directory / plugin
DX Remove Unused Custom Fields
v0.1 · by Mario Peshev
Delete the Custom Fields from your postmeta table where assigned posts no longer exist.
About this plugin
Delete all Custom Field entries assigned to posts that do not exist in the posts table.
Navigate to Settings -> Remove Unused CFs and delete all postmeta for non-existing posts.