WordPress delete unused images

New Page

How to Clean Up Your WordPress Media Library

Posted in Performance, Availability, WordPress by Samantha Rodriguez

Last updated on February 8, 2022

Media files are often necessary additions to any website. However, it’s easy for your WordPress media library to get cluttered with unused files, which can slow down your website and make media management difficult.

Fortunately, managing your media library doesn’t have to be a chore. By cleaning it up regularly and optimizing your images properly, you can be sure that your website (and your media) performs at its best.

In this article, we will discuss different ways to clean up your WordPress media library. Next, we’ll introduce three image cleanup plugins that can make the process easier. Let’s start!

Contents

1. Why You Should Clean Up WordPress Media Library

2. Reduce the amount of storage used

3. Resize images

4. Use JPG images instead of PNG

5.Eliminate duplicate images

6.Delete unused files and images

7. Plugins for image cleaning

7.1. media cleaner

7.2. WP Optimize

7.3. WPS Cleaner

8. How to Manually Clean Up WordPress Media Library

9. Excel with WP Engine

Why Should You Clean Up WordPress Media Library 

When you upload an image to your media library, WordPress makes multiple copies of it. Additionally, different themes and plugins may also request a variety of image sizes. As a result, your media library may accumulate a large number of files that you may not be aware of. 

Ultimately, this can bog down your entire website, as all those images take up space on your web server. Another problem that can arise from a messy media library is large website backups. If you have configured an automatic backup process, your backup files may become large and unwieldy.

Depending on your web hosting plan, all those extra files could potentially cost you more each month, as well as create an overall slowdown. Still, it’s important to make at least one copy of your current website before you tackle cleaning up the media library. This is because most cleaning processes mean that you will permanently delete some files. 

Reduce the amount of storage used

The amount of storage space you have will depend on your host. These limitations are put in place for a good reason, as too much media uploaded to your website will eventually diminish its functionality.

For example, the more files uploaded to a website, the longer it will take to load. This can slow down site speed and scare away visitors. It may also interfere with the user experience (UX) of the site.

Resize images

Many factors contribute to the use of media space, one of the most important being the size of the image. By uploading smaller images to your media library instead of just reducing the size of larger images with HTML, you can increase the space available on your server. This should help improve site speed, both forward and backward.

Image scaling is also a great way to resize your images without losing quality. In short, it allows you to use the minimum number of pixels to display your image, which directly correlates to a reduction in file size.

Additionally, how you treat images on your website can have a crucial impact on your website’s search engine optimization (SEO). For more information, check out our in-depth resource on image optimization and SEO. 

Use JPG images instead of PNG

Un autre facteur qui affecte l’utilisation de l’espace média est le type de fichier image que vous utilisez. Les deux plus courants sont JPG et PNG, mais le premier est meilleur lorsqu’il s’agit d’économiser de l’espace.

Al comparar imágenes JPG y PNG una al lado de la otra, notará una ligera diferencia en la calidad. Los PNG suelen ser de mayor calidad, pero esto no es un factor decisivo para la mayoría de las imágenes de sitios web. La única vez que realmente necesita usar PNG es cuando necesita un fondo de imagen transparente.

Cuando usa JPG en lugar de PNG, sus imágenes naturalmente serán de menor tamaño. Por supuesto, puede comprimirlos (o escalarlos) más si es necesario.

Eliminar imágenes duplicadas

Si bien a veces puede cargar múltiples de la misma imagen, las imágenes duplicadas generalmente son causadas por la creación automática de múltiples formatos de imagen de WordPress (como Miniatura , Medio y Grande ). Como mencionamos antes, esto puede llenar rápidamente su espacio de almacenamiento disponible, al mismo tiempo que ralentiza su sitio web.

Afortunadamente, esto es algo que puede detener fácilmente. Para hacerlo, dirígete a Configuración > Medios dentro de tu tablero de WordPress:

Resize duplicate images Resize duplicate images

Para evitar la creación de varios tamaños de imagen, simplemente cambie los valores de cada cuadro a 0 . Luego, haga clic en Guardar cambios :

Resize image in wordpress media library Change image size in wordpress media library

Sin dimensiones establecidas, WordPress ya no podrá guardar varios tamaños de la misma imagen.

Delete Unused Files and Images

One of the easiest ways to unload storage space and keep your site running at its best is to delete all of your unused files and images.

From the WordPress dashboard, go to Media > Library. To delete a single image, click it, then choose the Delete Permanently option at the bottom of the screen:

Delete unused images in wordpress media library Delete unused images in wordpress media library

A popup will appear on screen. Clicking OK will remove the file from your Media Library.

You can also bulk delete files and images, which is a quicker way of managing unused files. From the Media Library page, click Bulk Select at the top:

delete unused files in the media library delete unused files in the media library

Haga clic en todos los archivos que desee eliminar y seleccione Eliminar seleccionados . Aparecerá una ventana emergente y, al igual que arriba, haga clic en Aceptar para eliminar permanentemente estas imágenes:

delete unused files and images delete unused files and images

No es raro ‘recopilar’ archivos a lo largo del tiempo que no son necesarios. Es por eso que debe repetir este proceso al menos cada dos meses (aunque, cuanto más frecuente, mejor).

Complementos para la limpieza de imágenes

La biblioteca de medios de WordPress es bastante intuitiva, lo que es beneficioso incluso para los usuarios más experimentados. Sin embargo, es posible que necesite un poco más de ayuda cuando se trata de la gestión de la biblioteca multimedia. Aquí hay tres complementos de WordPress para la limpieza de imágenes que pueden resultarle útiles.

Limpiador de medios

Media Cleaner es un complemento simple, pero que simplifica la eliminación de archivos multimedia no utilizados. Una vez instalada, esta herramienta agregará todos los archivos que no se utilicen en su sitio web (como publicaciones, páginas o galerías) a una papelera temporal. Luego puede revisar los archivos para asegurarse de que desea eliminarlos y hacer que su eliminación sea permanente.

 WP-Optimizar

WP-Optimize ofrece muchas funciones relacionadas con la limpieza y optimización de los archivos de su sitio web. Específicamente, puede configurar el complemento para que limpie automáticamente las imágenes ‘huérfanas’ o las imágenes configuradas en ciertos tamaños. Además, puede configurar un programa de optimización que se ajuste a su sitio web. 

Limpiador WPS

WP Cleaner es un complemento de limpieza de sitios web multifunción. Sin embargo, tiene características específicas relacionadas con los medios. Por ejemplo, podrá revisar el peso total de sus archivos multimedia. Además, el panel fácil de usar puede ayudarlo a identificar los archivos multimedia no utilizados y eliminarlos de forma masiva o individual. WP Cleaner también identificará e incluirá los medios agregados a través de cualquier complemento principal del creador de páginas . 

Cómo limpiar manualmente la biblioteca multimedia de WordPress 

Si desea renunciar a agregar otro complemento a su sitio web, tiene otra opción. Puede limpiar su biblioteca multimedia de WordPress manualmente.

Antes de hacerlo, es una buena idea hacer una copia de seguridad de su sitio web. Esto se puede hacer con un complemento como BackUpWordPress .

También puede hacer una copia de seguridad solo de su biblioteca de medios a través del Protocolo de transferencia de archivos (FTP) . Simplemente descargue la carpeta wp-content del servidor de su sitio y guárdela en un lugar seguro (como en el almacenamiento en la nube ).

Una vez que haya conservado el contenido de su sitio web actual, puede comenzar a limpiar y eliminar los archivos de su biblioteca que ya no necesita. Esto se puede hacer yendo a Medios > Biblioteca en su tablero. Para eliminar una sola imagen, haga clic en ella y luego elija la opción Eliminar permanentemente en la parte inferior de la pantalla.

Aparecerá una ventana emergente y al hacer clic en Aceptar se eliminará el archivo de su biblioteca multimedia.

También puede eliminar archivos e imágenes de forma masiva, que es una forma más rápida de administrar los medios no utilizados. Desde la página de la Biblioteca multimedia, haga clic en Selección masiva en la parte superior.

Haga clic en todos los archivos que desee eliminar y elija Eliminar seleccionados . Luego seleccione Aceptar para eliminar permanentemente esas imágenes.

No es raro ‘recopilar’ archivos a lo largo del tiempo que no son necesarios. Es por eso que debes repetir este proceso al menos cada dos meses (aunque cuanto más seguido lo completes, mejor).

Si elige eliminar sus archivos usando el tablero como se describe arriba, también querrá verificarlos dos veces usando FTP. Dependiendo de cómo se agregaron, es posible que algunas imágenes aún permanezcan en su servidor, por lo que es importante asegurarse de que se eliminen para siempre.

Excel con motor WP

Al igual que una habitación desordenada, una biblioteca multimedia desordenada probablemente no sea muy funcional. Afortunadamente, estamos aquí para ayudarlo a obtener más información sobre la administración excepcional de sitios web.

A menudo, esto comienza accediendo a los mejores recursos para desarrolladores . Además, si desea obtener más información sobre nuestro servicio al cliente receptivo y el tiempo de actividad confiable, ¡asegúrese de consultar nuestros planes de alojamiento administrado !

Limpiar la biblioteca de medios de WordPress

The size of your WordPress Media Library will increase over time, taking up disk space and slowing down your website. That’s why it is recommended to regularly clean up your WordPress Media Library.

In this guide, we show you how to clean up unused media files manually or with a plugin, and give you tips on how to avoid a large Media Library.

  • What is the WordPress Media Library?
  • Why clean up the WordPress Media Library?
  • How to delete unused files manually
  • Use a plugin to clean up the Media Library
  • How to avoid a large Media Library

What is the WordPress Media Library?

The WordPress Media Library is a catalogue of all the media files that you have uploaded to your website, such as images, audio and video files and documents. You can find the Media Library in your WordPress dashboard.

  1. Log into your WordPress admin dashboard.
  2. Click Media in the menu on the left and select Library.

Medialibrary-wpadmin1.png

Why clean up the WordPress Media Library?

The size of your WordPress Media Library will increase over time because unused images are not automatically deleted. WordPress also duplicates uploaded images into different sizes by default.

A large Media Library takes up unnecessary disk space, increases backup sizes, complicates media management and negatively affects the performance and speed of your website. If your website has been up and running for some time, chances are high that the Media Library contains images that are not actually used by your website.

How to delete unused files manually

If your Media Library isn’t very large and has a manageable file count, you can remove unused files manually. You can either remove a single image at a time or bulk-remove multiple images in one go.

Note: This action cannot be undone. Before you continue we recommend that you make a backup of your site. Check out our guides below if you’re unsure how to do this.

  • Backup your web space via FTP
  • How do I make a backup of my database?
  1. Dans le tableau de bord WordPress, cliquez sur Médias dans le menu de gauche et sélectionnez Bibliothèque .
  2. Sélectionnez l’image que vous souhaitez supprimer.
  3. Dans la fenêtre contextuelle affichant les détails de la pièce jointe, choisissez Supprimer définitivement dans le coin inférieur droit.
  4. Click OK to confirm that you want to permanently delete the file.

Media-library-deletefile.png

Tip: You can also delete files and images in bulk. Just click on the Grouped selection button in the media library, choose all the files you want to delete and click “Delete selected”. Use a plugin to clean up the media library

If you have a large media library, cleaning it up manually can be a hassle. Fortunately, there are plugins that can help you.

We recommend using the plugin Media Cleaner to clean up your Media Library. Media Cleaner is a free plugin, that will scan your WordPress Media Library and look for files that are broken or aren’t actually used by your website.

Note: Any media files removed by the plugin will be permanently deleted. Before you continue we recommend that you make a backup of your site. Check out our guides below if you’re unsure how to do this.

  • Backup your web space via FTP
  • How do I make a backup of my database?
  1. Go to the Plugins page in your WordPress admin dashboard.
  2. Search for media cleaner, and install and activate the plugin called “Media Cleaner – Clean & Optimize Space”.
  3. Select Cleaner under Meow Apps in the left menu.
  4. Click “Go to Media Cleaner Dashboard”, scroll down and click Analyze .
  5. Select the files you want to delete and click Delete .

Cleanup-medialibrary-plugin.png

Tip: You can also click Delete All button to delete all unwanted media files at once. How to Avoid a Large Media Library

There are some preventative steps you can take to prevent the media library from getting too big. We’ve put together some tips for you.

There are some preventative steps you can take to prevent the media library from getting too big. We’ve put together some tips for you.

Optimize your images

The main goal of optimizing your images is to strike the balance between lowest file size and acceptable quality. Optimizing your images has many benefits, such as making your website load faster, improving SEO rankings, using less disk space, and faster website backups.

Compress images before uploading

Image compression is an important factor when it comes to optimizing images.

You can compress your images before uploading them to the media library in an image editing tool such as Adobe Photoshop or GIMP. There are also online tools you can use.

Don’t want to manually compress your images before uploading them? Use the free Imagify plugin to optimize all images. It is included by default in all WordPress 1-click installs.

Upload smaller images

Another important factor when it comes to image optimization is image scaling.

Images uploaded directly from smartphones or cameras are usually high quality images, huge file size and not optimized for the web. Usually, these large images are not displayed in their original size on the website, but rather scaled down with HTML or CSS, but the visitor’s browser still downloads the full-size image in its original size.

Instead, we recommend uploading smaller images to the media library so they match the actual pixel dimensions you use to display it on your website, which means a reduction in file size.

 

Regular checks

It is recommended to regularly check and clean your WordPress media library to prevent it from building up in size. We recommend doing this monthly, but the more often the better.

 

Use JPG format rather than PNG

Two of the most common file image formats are JPG and PNG. JPG files are better for photography while PNG is preferred when dealing with graphics, images with text or that require the use of a transparent background, such as logos for example.

PNG files are often higher quality, but this also makes them larger. We recommend using JPG files for your website images, as large images will slow your website to load and negatively impact visitor experience.

Related Articles:

  • How to Optimize WordPress Database
  • How to use the one.com Performance Cache plugin for WordPress


Video WordPress delete unused images

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…