Word Press Plugin That Deletes All Files in Upload
If you're having issues with your WordPress site, one potential gear up is to reinstall WordPress to make certain the issue isn't caused by any corrupt files. Done right, this ensures yous accept clean cadre WordPress files without affecting your existing content. Or, if you desire to restart your WordPress site from a completely blank slate, you lot might desire to entirely nuke your existing WordPress site and reinstall a fresh re-create of WordPress to first from scratch.
Whether yous want to completely reinstall WordPress or just reinstall the core WordPress software without affecting your existing content, nosotros've got you covered in this post.
The only affair we enquire is that you take a backup earlier following any of these methods. Even though the first two methods are geared at helping you reinstall WordPress without losing any content, it's always a expert idea to have a fresh fill-in simply in example something goes wrong! If you are a Kinsta client, you can quickly take a WordPress backup with a single-click.
Once you have your freshly taken backup in mitt, click below to skip to your tutorial of option:
- How to reinstall WordPress from the WordPress dashboard while preserving existing content
- How to manually reinstall WordPress via FTP while preserving existing content
- How to manually reinstall WordPress via WP-CLI while preserving existing content
- How to completely reinstall WordPress and get-go from a 100% blank slate
- How to reinstall WordPress themes or plugins
How To Reinstall WordPress While Preserving Existing Content
The following iii methods show you how to reinstall the core WordPress software without affecting whatsoever of your existing:
- Content
- Themes
- Plugins
On a slightly more technical level, that means neither of these methods will affect your WordPress site's:
- Database
- wp-config.php file
- wp-content folder
Each method merely reinstalls the core WordPress software.
How To Reinstall WordPress Core Software Automatically From Your Dashboard
If y'all only want to reinstall the cadre WordPress files, you tin actually exercise it right from your WordPress dashboard (if you tin can't access your WordPress dashboard – you should skip ahead to the next section for how to do the aforementioned thing via FTP!).
It's surprisingly simple. In your WordPress dashboard, go to Dashboard → Updates in the sidebar. Then, click the push to Re-install Now:

Once yous click the button, WordPress will automatically download and reinstall the latest version of WordPress. You're essentially just manually re-running the normal Update process that WordPress performs when you update WordPress from your dashboard.
It might take a few seconds – but once the process finishes, y'all should have a fresh copy of WordPress installed.
How to Reinstall WordPress Core Software Via FTP
If you tin can't admission your WordPress dashboard because of an error (or merely prefer to work over FTP), you tin can perform a similar process via FTP. You'll basically be manually duplicating what WordPress would otherwise do for you in the section higher up.
Here's the process in a nutshell:
- Download the latest version of WordPress
- Extract the Null file
- Upload everything except the /wp-content/ folder
Let's go through each step in a flake more than detail…
First, caput to WordPress.org and download the most recent version of WordPress:

Once the download finishes, extract the total contents of the Nada file to your computer. And so, delete the wp-content folder.

In one case you've done that, connect to your host via FTP and upload the remaining files to the folder where you lot originally installed WordPress. Usually, this is your root folder named something similar public or public_html.
When y'all start uploading the files, your FTP programme should prompt you with a bulletin saying something similar to Target file already exists. When that happens, make sure to select the Overwrite pick and continue:

Considering you already deleted the wp-content folder, this will overwrite all of the cadre WordPress files without affecting any of your themes or plugins. In one case the upload finishes, y'all should accept a freshly installed copy of the WordPress core files and things are hopefully running smoothly.
How to Reinstall WordPress Cadre Via WP-CLI
You lot can as well reinstall WordPress core using WP-CLI. WP-CLI is a command line tool for managing many-many aspects of a WordPress installation. It tin can add/remove users, posts, categories, insert examination data, search and supersede in the database, and much more. The following command would download WordPress core without the default themes and plugins.
Subscribe At present
wp cadre download --skip-content --forcefulness
Read more most WP-CLI commands.
How To Completely Uninstall And Reinstall WordPress
Important: If yous follow this method, yous volition lose all of your existing content. this department deals with uninstalling WordPress and installing a fresh, 100% blank re-create.
This method will not preserve whatever of your existing content. Practice non follow it unless you want to completely obliterate your existing WordPress site. Basically, you'll need to:
- Delete all of your existing WordPress files
- Install a fresh copy of WordPress using your desired method
If it sounds straightforward, that's because it is! To delete all of your existing files, you can connect to your site via FTP or, if your host uses cPanel, via cPanel File Manager.
Select all the files in the folder where you installed WordPress and delete them:

You might as well want to delete the existing database used for your WordPress site for cleanliness' sake, though you can use a fresh database even if you skip deleting the existing database. If your host uses cPanel, you can delete your existing database from the MySQL Databases expanse in cPanel:

Otherwise, y'all tin employ phpMyAdmin to Drop the Database:

One time you've cleaned out the existing WordPress files, all you demand to do is install a fresh copy of WordPress as you lot would with a brand new site. Depending on your host, you lot can do this:
- Via a ane-click installer similar Softaculous or Fantastico
- Manually using the famous five-infinitesimal WordPress install

Once you stop installing a fresh copy of WordPress, you tin get-go building your new site from an entirely bare slate. If you can't login to your WordPress dashboard, read our guide on how you lot tin change your password.
How To Reinstall WordPress Themes And Plugins
While the above methods dealt specifically with the WordPress core software, you may too encounter situations where you need to reinstall specific themes or plugins on your site. Thankfully, this is pretty simple. Here's the safest fashion to do and then:
Kickoff, connect to your site via FTP and navigate to yourwp-content folder. And then, depending on whether you lot want to reinstall a theme or a plugin, navigate into either thethemes or theplugins folder:

Find the folder for the plugin or theme you desire to reinstall. Then, rename that folder and append "_old" to the end of the original filename:

At this bespeak, you can install a fresh copy of the theme or plugin similar yous normally would. It should function the aforementioned as before and retain all of your previous settings and configurations.
One time y'all verify that everything is working properly with the reinstalled version, y'all can become back to your FTP program and delete the sometime folder:

Final Thoughts
In the stop, it'due south fairly simple to reinstall WordPress. If you lot just want to reinstall the core WordPress software, you lot can do so by either:
- Using the congenital-in WordPress update functionality
- Re-uploading the latest re-create of WordPress to your server, excluding the wp-content binder and wp-config-sample.php file.
And if you want to completely first from scratch, all you demand to do is delete your existing:
- Files
- Database
And install a fresh re-create of WordPress via whatever method you adopt. Finally, to reinstall a specific theme or plugin, all you lot demand to exercise is rename the existing binder via FTP and install a fresh copy like y'all normally would.
Suggested reading: How to Install WordPress Locally.
Save time, costs and maximize site performance with:
- Instant help from WordPress hosting experts, 24/seven.
- Cloudflare Enterprise integration.
- Global audition attain with 29 information centers worldwide.
- Optimization with our congenital-in Application Performance Monitoring.
All of that and much more, in one program with no long-term contracts, assisted migrations, and a thirty-twenty-four hours-money-dorsum-guarantee. Check out our plans or talk to sales to find the plan that's correct for you.
Source: https://kinsta.com/blog/reinstall-wordpress/
Post a Comment for "Word Press Plugin That Deletes All Files in Upload"