LWS Cleaner


LWS Cleaner helps you clean your WordPress website. This gives it a second youth, fast and easily!
Clean your posts, comments, terms, users or even unused medias with a single click. Manage your files and delete non native files to ensure utmost security on your website.


The LWS Cleaner plugin allows you to clean up various content related to your articles in a few clicks:

  • Delete article revisions
  • Delete automatic drafts
  • Delete articles in the recycle garbage can
  • Delete orphan metadata from articles
  • Delete duplicate metadata from articles
  • Delete the oEmbed cache of article metadata


Clean up the comments area just as easily:

  • Delete unapproved comments
  • Delete unwanted comments
  • Delete comments in the recycle garbage can
  • Remove orphaned metadata from comments
  • Remove duplicate metadata from comments
  • Disable comments on the site


You can also clean up terms:

  • Remove unused terms
  • Remove orphaned metadata from terms
  • Remove duplicate terms
  • Remove orphaned relationships from terms


  • Delete duplicate user metadata
  • Delete orphaned user metadata


  • Delete transients (cached data types in WordPress)
  • Delete crons (crons schedule events automatically)

Plugins / themes

  • Delete unused plugins
  • Delete unused themes


In this tab you will find a list of media that appear to be unused.

  • Delete media in a grouped way
  • Add media to the ignore list in a grouped way (to avoid deleting them by mistake)
  • Delete / ignore media on a case by case basis
  • Remove from the ignore list


In this last tab, detect and delete non-WordPress native files found in your web files. Be sure to check if the folder/file in question is not useful to you. This system can help you free up space on your server and possibly find a suspicious file.

  • Delete a non-native WordPress folder
  • Delete a non-native file from WordPress

This plugin is pre-installed when ordering one of these LWS webhosts: WordPress hosting, Classic shared web hosting and cPanel hosting


Released under the terms of the GNU General Public License.


  • LWS Cleaner Plugin Home
  • Cleaning up blog posts
  • Cleaning up comments
  • Clean up of terms
  • User cleanup
  • Cleaning up parameters
  • Plugins and themes cleanup
  • Media cleanup
  • File cleanup


There are 3 different ways to install LWS Cleaner (as with any other wordpress.org plugin).

Using the WordPress dashboard

  1. In WordPress, in the Extensions menu, click on “Add”
  2. Search for the ‘LWS Cleaner’ plugin
  3. Click ‘Install Now’
  4. Activate the plugin

Uploading in WordPress Dashboard

  1. Download the latest version of this plugin
  2. In WordPress, in the Extensions menu, click on “Add”
  3. Click on the top button “Upload an extension”
  4. Select the zip file from your computer (zip file from step 1.)
  5. Click ‘Install Now’
  6. Activate the plugin

Using FTP

  1. Download the latest version of this plugin
  2. Unzip the zip file. This extracts the files from the compressed folder on your computer
  3. Upload the LWS Cleaner folder to the /wp-content/plugins/ directory in your web space
  4. Activate the plugin in WordPress


Why clean up your WordPress site?

As you build your site, your WordPress database and media library will take up more and more disk space and MySQL space. This can slow down your website. That’s why it’s recommended to clean up your WordPress regularly.

Does this plugin need any particular web hosting to work?

This plugin can be used with all WordPress websites. However it was designed for LWS web hosting customers. Some features may be inaccessible to users of other servers. Apart from this plugin, LWS hosting offers you many other benefits: free domain, SSL certificate (https), pro emails based on your domain, low prices, premium WordPress themes and plugins…

If you want to host your WordPress site with LWS you can choose one of these solutions:

WordPress hosting
Classic shared web hosting
cPanel hosting

Do you have a valid promo code on recommended web hosting?

Yes, you can enter the coupon code WPEXT15 at checkout (on LWS) to receive an additional 15% discount (cumulative with current promotional offers!)

Where can I get help?

Find out more about LWS Cleaner by searching for this keyword on our LWS online help. A free 7 days / 7 support is also available in France when you have ordered a web hosting or other service from LWS. Videos are also published regularly on our YouTube channel.

Do you have any other plugins to recommend?

Other WordPress extensions have been created by LWS :

  • LWS Tools : Get a hold on various tools and options to optimize your website. From deactivating emotes or hiding sensible informations to deactivating REST API!
  • LWS Hide Login : Redirect your users if they try to access your admin page directly. Choose your own page and protect your website.
  • LWS Affiliation : Easily add banners and widgets such as search domain name availability or a summary table of our web hosting plans on your website.
  • LWS SMS : Create SMS templates and configurate your website to send SMS to clients when you want it ! Requires ordering SMS credits
  • LWS Cache : This plugin works only on servers using the LWSCache system. This cache is pre-installed with shared web hosting , WordPress hosting, cPanel hosting from LWS.

Useful LWS services to get you started on the web


جون 2, 2024
A useful little plugin… I’d like to see more development of this into something more in depth.
Read all 5 reviews

Contributors & Developers

“LWS Cleaner” is open source software. The following people have contributed to this plugin.


Translate “LWS Cleaner” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


  • Fixed issue where activating a plugin from the plugin tab was not working
  • Fixed a translation issue in French where orphaned terms relationships would say “unused terms” instead
  • Fixed issue where parent theme would get deleted when removing unused themes

  • Unexpected character sent on activation fixed. It could cause unexpected errors with the wp-cli


  • Minor changes
  • Can now remove specific theme/plugin instead of all of them


  • Fixed bug where the POST page was not working
  • Deleting duplicated metadata was deleting all of them. Now, will keep one metadata
  • Changed duplicated terms to duplicated terms metadata, as it was not referring to the right thing
  • Fixed orphan user metadata not getting deleted
  • Fixed translations errors
  • Bugs fixed


  • CSRF vulnerability fix


  • “Media” tab removed from the plugin due to unforseen problems
  • The plugin should now load faster or even just launch, now


  • Minor changes


  • Fixed issue where loading the page could take a long time
  • “Files” tab now loading when accessing it only, to prevent unecessary loadings
  • Made some changes to the UI


  • Preventive change for security
  • New plugin added to “Our plugins”


  • Mistranslations corrected for comments *
  • New plugin promoted in the Our Plugins tab


  • Missing translations fixed
  • Error with the “Files” tab fixed when updating to a new WP version


  • New design
  • Bug fixes
  • Optimisations
  • Can now disable comments / hide comments


  • Bug fixed : no more error when activating plugin


  • Plugin created and published