Library Management
Panel for Library Management in SweepPress Pro allows you to scan all the attachments in the WordPress Media Library to find any attachments missing files, invalid attachments missing meta records, and attachments that are potentially unused.
This feature is not available in the Lite version of the plugin!
To be able to use this feature, it needs to scan all the attachments and all the relevant files first, and only after the scanner is done, you can review and remove the attachments and belonging files from the database and from the file system.
Important Warnings
Before you decide to use this feature, you need to understand the way it works and potential limitations.
- The plugin depends on the default WordPress metadata records to identify the file paths and to find the files on the file system. If you use some plugin that modifies the default behavior, it is crucial not to use the SweepPress!
- If you have a third party plugin that modifies the default file names method that WordPress uses, and generates additional files that are named differently, SweepPress may not be able to detect that!
- SweepPress has several methods to detect if the options and meta keys are in use or not. Based on the identification, you can decide if you want to remove records belonging to a specific option or meta key.
- It is possible that attachments records can be created without a file, so make sure that you don’t need those attachment records before removing them.
- Attachments detected as unused should be taken into consideration before removal, because plugin determines if the image is used inside posts content, but it is possible that images are referenced and loaded in other ways that this process can’t detect.
- If you have some special method for storing files that are not inside upload folder, or are linked in some other way, do not use this feature!
Do not remove any files before you make sure that they should be removed, and do not use Quick tasks when it comes to Library management unless you are completely sure when it comes to file removal!
Files Backup
When you remove any attachments, plugin will create two backup files: one for the SQL queries for records removed from the database, and another containing all removed files, relative to the uploads folder root.