Support » Fixing WordPress » How to reset the Media Library after database gets wonky and out of date

  • I have switched from one media library plugin to another. In the process I screwed up my database and image connections. This isn’t too big a deal. But the database wants to point to a bunch of image locations that are now empty, and there are also multiple instances of images where there shouldn’t be.

    I have disabled all the media library organization plugins and I am going through my media library and renaming and organizing everything. I want to just reset the media library so that I can then turn back on my media library plugin, and let it take care of the rest without a bunch of junk in the database mucking things up.

    How can I do this? Is there a wp-cli command for this or something?

    I run a personal cloud server using NextCloud and it has a very simple “file:scan” cli command that allows you to rescan and update the database. Is that not possible with WP?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to reset the Media Library after database gets wonky and out of date’ is closed to new replies.