Unattach WordPress Image From Post
If you want to unattach an image from a post in WordPress, and you know your way around your database, try this:
- Backup your database.
- Open PhpMyAdmin
- Find the wp_posts table.
- Find your image in the list. It will have a post_type of “attachment”.
- Edit the row and change the post_parent to 0.