As a beginner, WordPress can bring you a pretty big curveball. Everything was fine the first minute, and the next minute, you fell into a stubborn mistake.

Although most WordPress errors are easy to fix, sometimes your only option is to reinstall the entire program from scratch. Other times, you are not even wrong. Hackers may make your website unusable, and reinstallation may be your rescuer.

In today’s post, we will show you how to reinstall WordPress without losing content. If you want to completely disrupt your WordPress site and start with a blank sheet of paper, we will also cover this.

Important considerations: Before you do anything, it is vital to create a backup of your website. Although you may not need a backup after reinstalling WordPress, if something goes wrong, keeping a backup is essential. To be safe, please automatically back up and ensure that a copy of your website is always kept on your computer or online.

Without further ado, let’s get to work.

Why/when to reinstall WordPress?

First of all, why or when do I need to reinstall WordPress? Generally, you will reinstall WordPress in the following situations:

  • Even after trying all the troubleshooting techniques in this book, you still encounter errors-don’t run and reinstall WordPress every time an error occurs, because as we said before, most WordPress errors are usually easy to fix.
  • Need to reset and reuse the test site-maybe, you are testing a theme or plugin. Due to the nature of the work, the developers have been reinstalling WordPress. I have also used my test site several times.
  • Your website must be rebuilt or repurposed-not long ago, when a hacker spat at me, I had to rebuild my website from scratch. I quickly reinstalled WordPress while saving some content, which saved me a lot of time and energy.

In other words, when everything else fails, reinstalling WordPress to repair your website is the last resort. By the way, let’s roll up our sleeves and start working.

How to reinstall WordPress: methods

Reinstalling WordPress is easy, although it may seem challenging at first. It’s also fun, so get ready to have a good time. In the next section, we will introduce four ways to reinstall WordPress.

Method 1: How to reinstall WordPress from your admin dashboard

Did you know that you can reinstall WordPress directly from the management dashboard? Oh yes, you can, and it’s very simple.

To reinstall WordPress from the dashboard, navigate to Dashboard> Update And click Reinstall now Button, as we have highlighted in the image below.

How to reinstall wordpress from the management dashboard

WordPress will automatically reinstall, and after a few seconds, you should see the welcome page:

wordpress welcome page

It should be noted that this method will only reinstall the WordPress core files. Your theme, plugins, design, content and everything else remain the same. This is the easiest and most beginner-friendly way to reinstall WordPress without breaking the website.

Beside: If for some reason, you cannot access your WordPress admin dashboard, you can still reinstall WordPress using the other methods in the post.

Method 2: How to reinstall WordPress using WP-CLI

Command line tool It is an abbreviation of WordPress command line interface. It is a free, open source, and developer-friendly tool that many people use to install plug-ins, configure multi-site installations, and do more work without using a web browser.

Many web hosts now support WP-CLI.You just need to master WP-CLI commands Benefit from tools.If you know WP-CLI, there is an easy way Command to reinstall WordPress.

Run the following command to reinstall WordPress:

wp core install --skip-content --force

The above command will download and install WordPress without harming your content. This method is not suitable for absolute beginners-you must understand WP-CLI and the server.

Method 3: How to reinstall WordPress via FTP

Now is the interesting part. In the next section, you will learn how to manually reinstall WordPress. We like that kind of stuff, don’t we? If we agree, let’s get started.

For starters, go to and download the latest version of WordPress:

Official wordpress website

Next, unzip the WordPress ZIP file to your computer and delete wp-content folder:

notes: delete wp-content The folder ensures that you will not overwrite the corresponding folder on the network server.this wp-content The folder contains your themes, plugins and media uploads-all the glamorous things you don’t want to lose.

After that, log in to your website via FTP:

Next, upload the remaining files in the WordPress folder to your site:

Your FTP program (I am using Win SCP) You should be prompted with a message letting you know that you are about to overwrite the file. Agree and let the upload process continue until all files are uploaded.

That’s it; you just manually reinstalled WordPress via FTP while retaining your content🙂

Method 4: How to reinstall WordPress without preserving content

Suppose you want to start with a blank sheet of paper. You want to solve the problem completely and start over, without keeping any content, themes or plugins.

warn: Before proceeding, make sure you are ready to lose your content. If you want to keep your posts, tags, comments, categories, etc., please consider exporting the data to an XML file. Or, you can create an emergency backup when you need it later.

Don’t know how to export your WordPress posts?

Well, it’s easy.

In your WordPress dashboard, navigate to Tools> Export, As follows.

Next, choose All content And click Download the export file At the bottom of the screen.

Save the resulting export file safely on your computer. If you don’t need to keep any content, please ignore the above steps and continue reading.

Remove WordPress installation in cPanel

Most web hosts provide you with a one-click installer to set up WordPress in less than five minutes. But did you know that you can use the same installer to delete your WordPress site? Yes, it is also very simple!

If you use cPanel, click WordPress Icon under Softaculous application installer. Some hosts use excellent The application installer, but the process remains relatively the same.

softaculous app installer

On the next screen, scroll to the bottom, find the website you want to delete, and click the (x) delete icon:

Next, click Remove install The button at the bottom of the next page.

After deleting the WordPress site, you can install a new blank site through the one-click installer or the famous 5-minute WordPress installation.

Bonus: reset WordPress via plugin

We all like WordPress, probably because for any feature you need, there is a plugin that prevents you from modifying the code and terrible technical content.

If you don’t have time to use FTP and cPanel (and still have access to your WordPress admin dashboard), you can use plugins to completely reset your site.

The WordPress reset plugin is especially useful for theme and plugin developers who want to quickly create a new test site.

The WordPress reset plugin will delete all custom settings, database tables, posts, pages, or specific parts, such as theme settings. However, resetting the plugin will not delete your media uploads, themes, and plugins. Usually, plugins disable themes and plugins.

To reset the WordPress installation, you can use a plugin, such as WP reset or Advanced WordPress reset.

In short

Reinstalling WordPress is easy. Usually, this process involves replacing the WordPress core files on your website. Now you can do this manually, or you can choose any of the automatic options we’ve already covered. The route you choose depends on personal preference.

For the perfect beginner, we recommend trying the automatic option first. If for some reason you cannot access your management dashboard, you can use the manual procedure. Remember, if you want to fix errors, reinstalling WordPress should be the last resort. Other than that, remember to create a backup before deleting anything.
Do you have questions or suggestions? Please let us know in the comments!