If you want to unattach an image from a post in WordPress, and you know your way around your database, try this:

  1. Backup your database.
  2. Open PhpMyAdmin
  3. Find the wp_posts table.
  4. Find your image in the list. It will have a post_type of “attachment”.
  5. Edit the row and change the post_parent to 0.