Media Library delete files left from backup restoration
-
I have recently had to use WP-Toolkit in Plesk to undo some changes to a site I am developing.
Context
I am using WpAllImport to import images in bulk to a woocommerce store.
Unfortunately I made a mistake and instead of saving one copy. It saved one copy per variation due to a settings error.
I restored the files and database to just before I ran the import but the upload folder was not overwritten – The files merged meaning my upload folder now contains thousands of files that are no longer in the WordPress media library.
Is there a way to automatically delete files from the uploads folder that are NOT in the media library?
The uploads folder with thumbnail generation sits at over 80,000 files and it should only be about 10,000 files.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.