Reinstall WordPress Core, Keep Content: Safe Steps

Short answer: you can reinstall WordPress core and keep content, because WordPress keeps the two apart. Core is the wp-admin and wp-includes folders plus the loose files in your site's root folder, such as index.php and wp-login.php. Your content lives in the database and in wp-content (themes, plugins, uploads), and your settings file is wp-config.php. A core reinstall swaps the first group for fresh copies and leaves the rest alone. If you can log in, Dashboard > Updates > Re-install now does it in one click.

Written against WordPress 7.1.2. Last verified: September 27, 2026.

Before you start: back up, and understand the one real risk

"Replace wp-admin and wp-includes" sounds terrifying, and it is worth being exact about why it is mostly not.

The risk is not the reinstall. It is deleting the wrong folder. wp-admin and wp-includes can be replaced any time from a fresh download. wp-content cannot: your uploaded images, themes and plugins exist only on your server and in your backups. Delete or overwrite that folder and the reinstall has become a data loss.

There is a second, smaller risk. The official Updating WordPress guide on WordPress.org (last updated September 15, 2024, read September 27, 2026) warns that the process affects all core files, and "if you have made any modifications to those files, your changes will be lost." If someone once edited a core file directly, that edit disappears.

So before any method below:

  1. Take a full backup of files and database, and confirm you can restore it. Our guide on how to verify a WordPress backup shows how.
  2. Download a copy of wp-config.php and .htaccess (if you have one) to your computer. The reinstall should not touch them, but a copy costs nothing.

Will a reinstall actually fix your problem?

Reinstalling core is the right tool for damaged or modified core files. It is the wrong tool for most other problems, and it will not hurt, but it wastes your time.

A core reinstall can help when:

  • An update failed partway and left WordPress's own files in a mixed state.
  • Core files were changed by something other than an update (a bad upload, a hacked site after cleanup, a well-meant edit).
  • A security scan or your host flagged WordPress's own files as altered.

It does not help when:

  • A plugin or theme is causing the error. Plugins and themes live in wp-content, which the reinstall leaves alone. If you cannot log in to test that, see how to disable all plugins without access to wp-admin.
  • The site is stuck on a maintenance message. That is a leftover file, not damaged core; see the one-file fix for maintenance mode.
  • The database cannot be reached. Core files are not involved in that.

If you have command-line access, you can check first rather than guess. The WP-CLI command wp core verify-checksums "verifies WordPress files against WordPress.org's checksums," according to the WordPress developer documentation. If it reports that everything verifies, your core files match the official release and a reinstall is unlikely to change anything.

Reinstall WordPress core, keep content: what is replaced and what is not

Part of your site Where it lives Touched by a core reinstall?
WordPress admin screens wp-admin folder Replaced
WordPress's internal code wp-includes folder Replaced
Root files like index.php, wp-login.php Site root folder Replaced
Posts, pages, users, settings, comments Database Not replaced (a database upgrade may run if versions differ)
Your theme and plugins wp-content/themes, wp-content/plugins Not replaced (see the note on default themes below)
Images and uploads wp-content/uploads Not replaced
Database login and site settings file wp-config.php Not replaced

The Updating WordPress guide tells readers directly not to worry about wp-config.php during this process: it states the file will be safe. The package ships a sample file, wp-config-sample.php, which the guide suggests comparing with your own for new settings; your real wp-config.php stays as it is.

Method 1: Dashboard > Updates > Re-install now (if you can log in)

This is the safest route, because WordPress does the file handling itself.

According to the Dashboard Updates screen documentation on WordPress.org (last updated June 6, 2024, read September 27, 2026), when you are already on the latest version the screen says you have the latest version and offers to re-install it:

  1. Go to Dashboard > Updates.
  2. Under the message that you have the latest version, click Re-install now.
  3. Wait for the progress messages. The documentation lists them as downloading the update, unpacking it, verifying the unpacked files, installing the latest version, upgrading the database, and then "WordPress upgraded successfully."
  4. Load your homepage and a few posts to confirm everything looks right.

That documentation page predates the WordPress 7.0 admin redesign. If the Updates screen is not where you expect, our table of where WordPress settings moved maps old locations to new ones.

The same screen also offers a Download button for the current version, which gives you the package for the manual method below.

Method 2: Manual reinstall through your host's file manager or FTP (if you are locked out)

Use this when you cannot reach wp-admin. It follows the manual steps in the Updating WordPress guide, adjusted for a reinstall.

Get the right package. Download WordPress from WordPress.org. The latest version is on the download page; older versions are in the release archive, which the guide points to. If you install a newer version than the one you were running, this becomes an update, not just a reinstall, and a database upgrade may follow.

Then, in this order:

  1. Unpack the zip file on your computer.
  2. If you can, deactivate plugins first. The guide lists this as a step. If you are locked out, skip it; you can deal with plugins afterward.
  3. On your server, delete the old wp-admin and wp-includes folders. Only those two. Read the folder name twice before you confirm.
  4. Upload the new wp-admin and wp-includes folders in their place.
  5. Upload the loose files from the new package's root folder into your site's root folder, overwriting the old ones.
  6. Leave your wp-content folder alone. The guide says: "Do NOT delete your existing wp-content folder." It does describe copying the individual files from the new wp-content into yours, overwriting matches, and warns that if you customized a default theme without renaming it, doing so will overwrite your changes. When your goal is only to repair core, skipping the new wp-content entirely is the cautious choice.
  7. If you are recovering from a failed update, delete the .maintenance file from the root folder if it is there, as the guide advises.
  8. Visit /wp-admin/. The guide says that if a database upgrade is needed, WordPress will detect it and give you a link to follow. Do it straight away.
  9. If you deactivated plugins, reactivate them. If you use caching, clear the cache so you see the new files.

If a step fails partway, for example an upload stops, do not panic and do not delete anything else. Upload the missing folder again. Nothing in steps 3 to 5 touches your content.

Method 3: WP-CLI (if you have SSH access)

If your host gives you a command line and you are comfortable with it, WP-CLI does the same job. The WordPress developer documentation for wp core download describes two options that matter here:

  • --skip-content: "Download WP without the default themes and plugins."
  • --force: "Overwrites existing files, if present."

Run from your site's root folder, wp core download --skip-content --force replaces the core files without adding default themes or plugins. Run wp core verify-checksums afterward to confirm the files now match the official release. If you have never used a command line on a live server, use Method 1 or 2 instead.

After the reinstall: a five-point check

  1. The homepage and a few posts load normally.
  2. You can log in to wp-admin.
  3. Your theme looks the same as before.
  4. Your images display (they live in wp-content/uploads, so they should).
  5. If the original problem is still there, it was not caused by core files. Move on to plugins and themes, which is where most WordPress breakage lives.

FAQ

Will reinstalling WordPress core delete my posts?

No. Posts, pages, users and settings are in the database, and a core reinstall does not replace the database. If the new files belong to a newer version, WordPress may run a database upgrade, which updates the database structure rather than removing content.

Will I lose my theme or plugins?

Not if you leave wp-content alone. Methods 1 and 3 do not remove your themes or plugins. In the manual method, the only risk is deleting or overwriting wp-content, so skip it.

Is "Re-install now" the same as a fresh install?

No. A fresh install creates a new, empty site. Re-install replaces the core files of your existing site and keeps its database, content and settings.

Do I need to reinstall the same version I had?

It is the cleanest option. Installing a newer version works too, but then it is an update, and WordPress may ask you to run a database upgrade when you next open wp-admin.

Will my wp-config.php be overwritten?

No. The official Updating WordPress guide says your wp-config.php "will be safe." Keep your own copy anyway.

Wpnotar Editorial
Wpnotar Editorial
Articles: 73

Leave a Reply

Your email address will not be published. Required fields are marked *