163

Are you running out of disk space and inodes for your WordPress website?

If you run out of disk space and inodes, then you might see different errors. For example, you won’t be able to upload images, send or receive emails, update blog posts, and more. Your users will also have a hard time accessing your website.

In this article, we will show you how to reduce disk space and inodes on WordPress.

Why Free Up Disk Space and Reduce Inode Usage?

When you purchase WordPress hosting for your website, each service will provide a certain disk space and inode limit.

Inode is where the metadata for files is stored, like the file size and its physical location. Inode usage equals the number of files and folders on your hosting account.

Initially, you don’t have to worry about these limits, as you’ll be just starting out. However, as your WordPress site grows, more files and folders will take up disk space and utilize inodes. Once you reach your WordPress hosting company’s allotted limit, you’ll notice several issues on your site.

For instance, you won’t be able to send or receive emails from your website, have difficulty uploading images and other content to the media library, and update content on pages and posts.

If the disk space is full, then your visitors might also face problems while accessing your website. Besides that, migrating your site to another host might also not work if you don’t have enough disk space.

Reducing disk space and inodes will help resolve these issues. Plus, you will see better website performance and a smooth user experience.

With that, let’s see how you can check disk space usage on your WordPress site.

How to Check Disk Space in WordPress

There are multiple ways you can check the disk space in WordPress. The easiest way is by accessing the cPanel of your hosting service.

All web hosting providers offer statistics on disk usage, file usage, number of email accounts, and more.

For example, if you’re using Bluehost, then you can simply log in to your account. After that, head to the ‘Advanced’ tab from the menu on your left. The column on the right side will show statistics about disk and file usage.

View disk usage in Bluehost

That said, let’s look at ways to increase disk space and free up inodes in WordPress. You can click the links below to jump ahead to your preferred section.

1. Use Image Optimization Tools to Reduce Their Size

A simple way to save disk space is by optimizing your images. You can use different tools to reduce the image size without lowering its quality. Besides that, you can change the file format (PNG, JPEG, GIF) and dimensions to reduce the image size by 80%.

It not only helps save inode usage but also makes your website load faster. You also get faster website backups and improved SEO rankings.

Image optimization tools use compression technology to lower the file size of the picture. You can use photo editing software like Adobe Photoshop, Affinity, or web tools such as TinyPNG or JPEGmini.

Optimized vs Unoptimized Images in WordPress

There are also different WordPress plugins that automatically compress images when you upload them.

For more details, please see our guide on how to optimize images for web performance without losing quality.

2. Prevent WordPress from Generating Image Sizes

Did you know WordPress creates multiple copies of an image when you upload it to your website?

WordPress automatically generates different image sizes, which include thumbnail, medium, and large sizes in addition to the original picture.

WordPress Automatically Creates Copies of Your Images in Different Sizes

These image sizes will take up disk space and inodes on your website. Besides, the backup size of your site will also become large due to different versions of a single image.

A simple way to prevent WordPress from generating multiple image sizes is using the Stop Generating Unnecessary Thumbnails plugin. It is a free plugin that lets you disable image sizes.

You can learn more by following our guide on how to prevent WordPress from generating image sizes.

3. Don’t Upload Videos to WordPress

Another way you can reduce disk space, and inodes is by ensuring that you don’t upload videos to WordPress.

Directly uploading videos to your site means using more bandwidth and disk space. If you have high-quality videos, then it will utilize even more resources. You will also need different plugins to manage and display videos, which means using more disk space.

A better alternative is to upload videos to sites like YouTube or Vimeo and then embed them on your site. This way, you’ll free up disk space and bandwidth. Your videos will also get more exposure since YouTube is the second most popular search engine and the most visited site.

You can follow our guide on how to easily embed videos in WordPress blog posts for more details.

4. Clean Your WordPress Media Library

Cleaning your WordPress media library is a great way of incresting disk space and reducing inodes in WordPress.

If you have media files that are not in use, have multiple copies of the same image, or have pictures in the incorrect size, then you can remove them to free up space.

Usually, you can head to Media » Library from the WordPress dashboard and select an image you want to remove. Once the image attachment details open, simply click the ‘Delete permanently’ option.

Delete images from library

However, the manual process is time-consuming, and it can be hard to find media files that are not in use.

A more efficient way is to use WordPress plugins that help clean the WordPress media library. For example, Media Cleaner is a free plugin that scans your site for unused media files in the library and posts/pages. You can then decide which files to keep and which to remove.

For more details, please see our guide on how to clean up your WordPress media library.

5. Remove Inactive WordPress Plugins and Themes

Do you have WordPress plugins and themes that are inactive and currently not in use?

Having inactive WordPress themes and plugins means they are using inodes and taking up disk space. You should remove these plugins and themes to increase disk space and reduce inode usage.

To remove plugins, simply head to Plugins » Installed Plugins from your WordPress admin panel. Next, click the ‘Delete’ button for any plugin that is not being used.

Delete inactive plugins

Similarly, you can also delete inactive WordPress themes.

First, you will need to go to Appearance » Themes from your WordPress dashboard.

Delete inactive themes

From here, click on the theme you want to remove.

A new popup window will open with the details of your WordPress theme. Go ahead and click the ‘Delete’ button at the bottom right corner.

Delete a theme

6. Delete Draft Blog Posts and Pages

Just like inactive themes and plugins, removing draft blog posts and pages can also free up disk space and reduce inodes in WordPress.

They would take up unnecessary space, and you can improve website performance by deleting them.

Simply go to Posts » All Posts from your WordPress admin area. Next, click the ‘Trash’ button under any draft blog post.

Trash draft blog post

You can do the same for draft pages on your website.

WordPress also allows you to bulk delete posts and pages. For more details, please see our guide on how to bulk delete WordPress posts.

7. Empty Your Mailbox and Delete Unused Email Accounts

If you’re using email accounts on your hosting service, then they also take up space and utilize inodes on your site.

To reduce inode usage and save disk space, you can check your emails and delete any unwanted emails. These can be spam emails or old emails that are not required anymore.

Similarly, if you have multiple email accounts set up on your WordPress hosting service, then you can delete accounts for inactive users. You can access your mailbox and different email accounts using the cPanel of your hosting provider.

8. Clear Cache and Old Backup Files in WordPress

Cache plugins are super useful in speeding up your WordPress website and providing a better user experience.

However, these plugins can generate a high amount of cache files if left unchecked. As a result, they will utilize inodes on WordPress. That’s why it is a best practice to clear the WordPress cache at regular intervals and reduce inode usage.

Different WordPress hosting services and caching plugins come with a built-in option to clear the cache.

For example, Bluehost allows clearing your cache from the WordPress admin area. Simply select the ‘Caching’ option in the toolbar at the top and click the ‘Purge All’ option to remove the cache.

Clear Bluehost cache

Similarly, if you’re using WordPress security and backup plugins, then clearing old security reports and backups will also significantly improve your inode usage and disk space issues.

For instance, if you’re using Duplicator for backups, then you can view existing backups and delete the old ones from your WordPress dashboard.

Simply go to the Duplicator Pro » Packages page and select your old backup. After that, click the Bulk Action dropdown menu and select Delete.

Delete existing backups in WordPress

You can get started with the free version of Duplicator, and we highly recommend checking out the Pro features, too.

We hope this article helped you learn how to free up disk space and reduce inode usage on WordPress. You may also want to see our guide on WordPress security and tips to speed up WordPress performance.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Free Disk Space and Reduce Inode Usage in WordPress first appeared on WPBeginner.

Want to receive personalized offers?

Allow notifications to get real-time updates about your shopping cart and who knows, you may even receive a sweet discount code 😊

Maybe later