How to re install WP after deleting WP files and clearing database?

I’ve tried to copy a site on Local WP but it doesnt work properly. So I try to deleting WP files and clearing database. I think I’ve also deleted essential WP files. I’m trying now to re install full WP but I don’t know how to do. I know I can issue a new site but I want to test this method locally before apllying on my real site. Thanks for your help.


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc


System Details

  • Local Version:

  • Operating System (OS) and OS version:


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hey @Danyel!

You can click on Site Shell and then use WP-CLI to run this command:

wp core download --force

That will reinstall the basic WP core files.

I tried your solution but it doesn’t run. It runs an error 77. I finally download WP and copy WP folders on public folder and it runs. Thanks for your help.

1 Like

Okay sounds good @Danyel glad you’re up and running again :smile: