Before you go ahead and reset your entire website, you should take a back up of the website so that if in case anything goes wrong you can always roll back to your previous state.

Let’s see the steps involved in resetting WordPress manually.

1. Delete the database

2. Create a new database

3. Remove unwanted files

4. Run WordPress installation again

For a live website, you can do this easily by the cPanel of your hosting provider.

1-Delete the Database

From the cPanel, go to the Databases section of the cPanel.Next, from the Database list, find the right database to your WordPress website. Take a note of the name of the database. Then click on the delete button from the actions.Now that you have deleted the WordPress website, do not access your website just yet. Without a database, you will not be able to access your website. So, we need to move on to the next step.For more information check SEO Services in London.

2 – Create a new Database

After deleting the old database, create a new one from the same screen on the cPanel. Go to the Create New Database section, and enter the name of the database. Enter the same name as the old database.Next, you need to Add a user to the newly created database. Try to use the same username and password to the new database.

If you have lost your username and password, you can get if from the wp-config file from your FTP. Login to your FTP, then access the wp-config file from your website’s public_html folder. You can edit/view the file from your FTP program or download the file.

From this file, all you need is the old database username and password. You can find them under MySQL Settings in the file.After you get the username and password of the old database, you can now go ahead and create a new one.

3 – Remove the unwanted files

After deleting the database, you have only deleted the posts, pages, comments, custom tables, all the settings of the website. The rest of the data like the themes, plugins, and the upload files are stored separately in the wp-content folder, remember? So, to manually delete them, from your FTP go to the website root folder in public_html.

From the wp-contents folder, delete the folders that you want to delete except the themes folder. In the themes folder, delete the themes that you want to delete and only keep any of the default WordPress themes like Twenty Seventeen.

4 – Run the WordPress installation Again

After you have successfully reset the WordPress website, you will need to run the installation again. For this, you need to append the /wp-admin/install.php on the address bar of your browser. This will run the installation and you may need to enter a few settings and admin username and password.

Now you have a fresh new installation of your WordPress website and you can now work on your new website afresh.

Now all this may seem a lot of work to do for resetting a website, especially when there are plugins that help you to accomplish the task in a click of a button. But manual reset of WordPress makes you understand the inner workings of WordPress and what lies beneath the surface.

Resetting Using WP-CLI

If you are a developer, then you must be using WP-CLI in your development. And if you are not a developer and you are not aware of it, WP-CLI is a tool that enables to interact with your WordPress website using the command line via SSH (Secure Shel) access.

Using WP-CLI, you can reset the WordPress site using the command wp db reset. That’s it, and you will have the database reset and you are left with only the default settings of the WordPress website.For more details on SEO Services visit Vci-india

But using WP-CLI you will only be resetting the database, for the rest of the data like the themes, plugins, and the media uploads, you will have to reset them manually.

Leave a comment

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