• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Tips and Tricks HQ

  • Home
  • Projects
    • All Projects
    • Simple WP Shopping Cart
    • WP Express Checkout Plugin
    • Accept Stripe Payments
    • WP Download Monitor
    • Easy HTTPS Redirection
    • WP Security and Firewall Plugin
    • WP eStore Plugin
    • WP Affiliate Platform
    • WP eMember
  • Products
    • All Products
    • Checkout
  • Support
    • Support Portal
    • Customer Only Forum
    • WP eStore Documentation
    • WP Affiliate Software Documentation
    • WP eMember Documentation
  • Contact

How to Uninstall and Reinstall WordPress

Home » Blog » How to Uninstall and Reinstall WordPress

Last updated: November 14, 2016





In this post I have explained how you can uninstall and reinstall WordPress. You will rarely think about uninstalling/reinstalling WordPress on your site unless you start having ‘Apache security mod rewrite and htaccess’ issue like myself.  I decided to Reinstall WordPress on one of my sites after trying numerous fixes to solve the issue and getting no result. Some people uninstall/reinstall WordPress to start over from scratch. Anyway, whatever the reason is, you can uninstall and reinstall WordPress using one of the following methods:

Approach 1 (Full Clean Uninstall)

  1. Delete all your WordPress files and folders from the site (usually from your ‘public_html’ directory).
  2. Delete the WordPress database user and table (usually through ‘cPanel’ control panel if your site has ‘cPanel’). Go to the MySQL database section and you can remove the database and DB users from that interface.
  3. Now Install WordPress from the beginning like you did the first time and you are done (How to install WordPress).

Approach 2 (Quick Fix Uninstall)

  1. Delete the WordPress database user and table.
  2. Create new database user and table and update the ‘wp-config.php’ file with the new information (alternatively you can reuse the same user name and table name from previous and you won’t have to update the ‘wp-config.php’ file)
  3. Run the installer (install.php) by visiting your site.

How to Delete the WordPress Files and Folders

You can delete all of your WordPress files using one of the following methods:

Option 1: Log into your site’s cPanel/Control panel and go to the file browser. Find the folder where all the WordPress files are and remove those files.

Option 2: Log into your site using a FTP software (example, FileZiall). Go to the folder where WordPress is installed. Select all the files and folder then hit the delete button then confirm the deletion.



Option 3: If you have shell access to your server then you can log into your server using a SSH client then browse to the folder where WordPress is installed. Now issue the “rm” UNIX command to remove files and folders. This option should only be exercised by advanced users who are familiar with the UNIX system.

If you want to do a full WordPress blog deletion then check our how to delete a wordpress blog tutorial.

Video Tutorial

Additional Tips

#1) The tutorial on exporting and importing database tables should be helpful for the above operation.

#2) It is always a good idea to use the ‘robots.txt’ on your site to control the access of the web robots such as Google bot from coming and indexing your site when you are doing extended maintenance. You don’t want the bot to crawl and index your site when you just deleted the entire content of your site! Read the How to control access of the web crawlers or web robots to your site article to learn more.

#3) Get a cheap and reliable hosting for your WordPress site. The support team of a good webhost will help you if you have messed up the WordPress install.

Related Posts

  • Query or show a specific post in wordpress
  • Protect your WordPress site/blog from comment spam trick
  • Manage Your WordPress Web Ads Easily
  • How to Control Access of the Web Crawlers or Web Robots to Your Site

Web Development,  Wordpress Database,  Database Recovery,  uninstall,  Web Development,  Wordpress,  Wordpress install

Reader Interactions

Comments (38 responses)

  1. Katy says:
    September 29, 2016 at 6:21 am

    Thanks saved my site from a real mess. w3 total cache was messing it up with that plugin gone all screwy thanks.
    Then had issue logging into WordPress between you guys and this site here we got it all sorted. Yay

  2. MattyD says:
    August 24, 2016 at 8:23 pm

    You rock, thank you !!

  3. admin says:
    February 10, 2016 at 9:44 pm

    @Vedad, If you want to retrieve your old content then you should take a backup of your content. So you can import it after you re-install WordPress.

  4. rz says:
    January 13, 2016 at 11:00 pm

    Thanks! I ended up just deleting the database entirely and then selecting “create database for me” when installing wordpress. Hope I did it right. :s

  5. admin says:
    January 13, 2016 at 9:18 pm

    @rz, Just edit your wp-config.php file and specify your new DB name and password in there. The following tutorial has info on how to do that:
    https://www.tipsandtricks-hq.com/how-to-install-wordpress-on-your-blog-instructions-with-screenshots-496

  6. rz says:
    January 13, 2016 at 8:50 pm

    So, I’m just trying to start off with a clean slate. I won’t be uploading old content or anything like that. My problem is I forgot to look up the old password before deleting the SQL database, so I just created a new one. Is this going to be a problem? Also, why does it look like there’s still a bunch of stuff in the database even though I haven’t done anything new yet since ‘cleaning the slate’? I followed the instructions in the video and gave it the same name and username (just neglected to give it the same password).

    Also, when I go to reinstall WordPress, how will it know which SQL Database to use? I have multiple. Thank you so much!

  7. admin says:
    December 9, 2015 at 6:48 pm

    @Thomas, Yes you can use the same approach for localhost setup also.

  8. thomas says:
    December 9, 2015 at 9:50 am

    hi,

    how to reinstall wordpress on localhost? can we use approach 1?

    thankyou

  9. trudy says:
    February 11, 2015 at 9:20 pm

    Thank you for the detailed and so exact description for what I needed to do, left my site alone for three mths but then had a brainwave and knew I had to remove my directories, happened on your advice and it worked, Thank goodness for you, WELL DONE thanks again

  10. admin says:
    July 2, 2013 at 11:18 pm

    @Aleena, yes this will delete everything (including your posts). You can export the data before you do this if you want to keep the content.

  11. Aleena says:
    July 2, 2013 at 9:03 pm

    Wouldn’t that delete all my postings?

  12. admin says:
    June 17, 2013 at 7:36 pm

    @Nick, you probably should investigate the URL of the images and make sure they are not pointing to 404 pages. If you take the URL of a photo from your post and enter it in the browser, can you see it? If you can’t then you need to investigate the folder you put your photos in (maybe you uploaded them in the wrong place).

  13. nick says:
    June 17, 2013 at 3:48 am

    Having malware probs, rebuilt some of the sites with sql or ftp the pics are not there

    How do I get the photos to show up again?I copied them back into into the FTP client, but they are “connecting”.
    They don’t appear in my media gallery either.Do I need to re upload all of them again? many thanks

  14. Todd says:
    June 5, 2013 at 3:05 pm

    Great article! I like the many options that you provide. The video and Additional Tips were really helpful too.

    I’m going to check out the WordPress Reset plugin that was mentioned in one of the comments above. It looks like it works pretty well.

    The only other option I would add here is the process for uninstalling using the “one-click” software solutions like Fantastico or QuickInstall.

  15. William Luke says:
    April 1, 2013 at 7:06 am

    Thanks for the sharing. very informative

  16. Chiranjeev says:
    March 5, 2013 at 3:39 am

    Great tutorial. I was really looking for such a tutorial to re-install wordpress. I was having some issued in my WordPress database. But thanks for your informative post.
    Thanks,

  17. funbrain says:
    November 19, 2011 at 2:15 am

    This is a great advice admin, but I have another thing in mind. If wordpress users are tired of installing and uninstalling the their wordpress sites. And they want to see the backend fresh and new. try WordPress Reset you can download it here http://wordpress.org/extend/plugins/wordpress-reset/ ; Ive tried it many times already as a first timer on wordpress cms. brilliant plugin. Thanks again admin. hope to c more of your articles new or updated post.

  18. admin says:
    November 2, 2011 at 5:57 pm

    The error you are getting is a JavaScript error. Most likely you are calling a function from a library before it has loaded in the page. When you delete your theme and install a fresh copy it should delete or change any content from your existing WordPress post or page.

  19. Alex says:
    November 2, 2011 at 4:28 pm

    Is it possible to reinstall a theme without messing up the content in the pages and links?

    I dont know what happened but now my Gallery gives me

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
    Timestamp: Wed, 2 Nov 2011 20:17:20 UTC

    Message: ‘loading’ is null or not an object
    Line: 292
    Char: 3
    Code: 0

    from Internet Explorer
    thanks

  20. admin says:
    October 6, 2011 at 9:57 pm

    Not sure why you would have an issue deleting files via an FTP application (FileZilla). What error do you get when you try to delete? You can also ask your hosting providers to delete the content of your site from the server so you can start fresh and they will just delete it in one go.

  21. Christien says:
    October 6, 2011 at 9:35 pm

    Im having trouble uninstalling. I’ve done everything that has been suggested above. I originally removed the installation of the wordpress file in cpanel. But when I went to reinstall I had unable to install as I needed to remove files wp-admin, wp-content, wp-includes. And I did that within cpanel and it would appear that it was deleted but when I went back to reinstall wp again it would come up again manually remove files wp-admin etc. So I tried it within filezilla deleting files there. But I was unable to delete files within filezilla. Help please.

  22. Ray Casey says:
    August 20, 2011 at 10:58 pm

    Thank you for this awesome information. I spent most of yesterday messing around in cpanel trying to delete a website and I had real problems. This has cleared it up nicely for me.
    Regards
    Ray

  23. Rahul Gupta says:
    March 19, 2011 at 1:50 pm

    Thanks for the good advice. I was looking for a way to set up a new wordpress project out of an already existing wp system. Kind like a “clone”. Why that? To avoid the efforts of reinstalling and configuring all the plugins and settings etc.

  24. anch says:
    January 12, 2011 at 1:47 am

    thanks for the tip it was quite useful.could not find a better way to reinstall my site

  25. Jonathan says:
    December 4, 2010 at 2:14 pm

    You also need to delete the file “installed_in_root.php” in the .fantasticodata folder or else you will be greeted when reinstalling wordpress with “The installation cannot be completed. You cannot install more than one script in the root directory of a domain.”

  26. Hung says:
    November 5, 2010 at 5:17 pm

    Hey thanks for your great advice.

    This post is the best one I’ve seen about doing a manual uninstall. As you might have guessed I’ve got a problem I think I can only fix by starting over. I think I know what to do, but there a few things which have caused me to hesitate

    What files do I delete to complete the ‘uninstall’? People say, ‘delete all wordpress files’ but my problem is I don’t know exactly which these are – I inherited the site a year ago and only now have had to think about doing this! I’m thinking that I should not delete everything in public.html, but instead delete just the following:

    – every file beginning with ‘wp’
    – everything beginning with ‘vtl’
    – xmlrpc.php
    – index.php

    Or should I really just delete everything in public.html?

    I can delete database / users etc no problem.

    Thanks for help and keep up the good work!

    Best wishes

  27. Classifieds says:
    October 17, 2010 at 3:22 pm

    Thanks for the info about deleting the tables…was stuck on it all night !!

  28. admin says:
    September 22, 2010 at 12:30 am

    Are you using a FTP program to delete the files? Try a FTP program like “FileZilla”

  29. dk says:
    September 21, 2010 at 1:42 pm

    Hi,

    I’m trying to delete wordpress and re-install it on my webhostingpad server. However, it wont let me delete the wp-includes file? Any suggestions?

  30. admin says:
    February 11, 2010 at 3:03 am

    Not sure what you mean.. can you elaborate please?

  31. chris brown says:
    February 9, 2010 at 9:52 am

    How do I get the photos to show up again? I copied them from the FTP client into my hard drive… then after I reinstalled the database, I copied them back into into the FTP client, but they are “connecting”.

    They don’t appear in my media gallery. Do I need to re upload all of them again? Yikes.

    Plese advise.

  32. admin says:
    January 15, 2010 at 9:42 pm

    A table in this context is referring to a “MySQL Database Table”.

  33. Daniel says:
    January 14, 2010 at 9:17 am

    what is table? can you elaborate?

  34. rosie says:
    January 7, 2010 at 2:30 pm

    hello – im new to databasing. can you go into a bit more detail on how to delete the wordpress database’s ‘user and table’?

  35. seo specialist says:
    December 17, 2009 at 8:44 am

    thanks for the detailed information on Wordpres Installation, i was looking for this solutions since 6 month, i have re-install my wordpress and its working perfect. thanks again.

  36. admin says:
    November 27, 2009 at 9:22 pm

    @jm, not sure I understand what you mean by primary and secondary articles in wordpress.

  37. jm says:
    November 27, 2009 at 8:03 pm

    hi i had problem, how can i delete the secondary article, because everytime i add a new article, the articles always goes to the secondary articles, the article should go on the primary articles, pls. help me..

  38. Horst says:
    November 8, 2009 at 1:00 pm

    Thanks for the good advice. I was looking for a way to set up a new wordpress project out of an already existing wp system. Kind like a “clone”. Why that? To avoid the efforts of reinstalling and configuring all the plugins and settings etc.

    Don’t know if this would work? If you have any ideas how to do this “cloning” please drop me a few lines to horst.graebner (ad) gmx (dot) com. Thanks.

Leave a Reply

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

Primary Sidebar

Featured & Popular Articles

Video Answers to Top WordPress QuestionsWordPress Optimization Tips and Tricks for Better Performance and SpeedEssential WordPress Security Tips - Is Your Blog Protected?WordPress Simple PayPal Shopping Cart PluginTop 15 Search Engine Optimization (SEO) Techniques I Forget to DoList of the Best and Must Use WordPress PluginsHow do I Start a Blog and Make Money Online?Good Domain Name Picking Tips for Your Blog SetupFind Out Which WordPress Web Hosting Company Offers the Cheapest and Reliable Web Hosting Solution

Featured WordPress Plugins

WP Express Checkout Plugin
wordpress estore plugin
wordpress membership plugin
wordpress affiliate plugin

Recent Posts

  • How to Use Browser Developer Tools to Inspect Elements and [...]
  • Accept Donations via PayPal from Your WordPress Site Easil [...]
  • Buy Now Button Graphics for eCommerce Websites [...]
  • Subscription Button Graphics for eCommerce Websites [...]
  • Adding PayPal Payment Buttons to Your WordPress Sidebar Ea [...]

Comment & Socialize

  • @Rob, We have just released ...
    - admin
  • I installed the plugin a co ...
    - Rob
  • @Sebastian, We've released ...
    - admin
  • I've used this plugin on a ...
    - Sebastian Djupsjöbacka
  • @John, this plugin doesn't ...
    - admin

Check out our solutions

View our WordPress plugin collection and start using them on your site.

Our WordPress Solutions

Footer

Company

  • About
  • Privacy Policy
  • Terms and Conditions
  • Affiliate Login

Top WordPress Plugins

  • Simple Shopping Cart
  • PayPal Donations
  • WP Express Checkout
  • WP eStore
  • WP eMember

Blogging Tips

  • How to Start a Blog
  • Selecting a Good Domain
  • Cheap WP Hosting
  • WP Video Tutorials
  • Simple SEO Tips

Search


Keep In Touch

Copyright © 2025 | Tips and Tricks HQ