# Recover a site deleted by mistake

**URL:** <https://community.localwp.com/t/recover-a-site-deleted-by-mistake/38373>\
**Category:** Support\
**Created:** [August 1, 2023, 8:26pm UTC](https://community.localwp.com/t/recover-a-site-deleted-by-mistake/38373 "2023-08-01T20:26:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ods44015](https://avatars.discourse-cdn.com/v4/letter/o/ecc23a/32.png) [@Ods44015](https://community.localwp.com/u/Ods44015)\
**Post date:** [August 1, 2023, 8:26pm UTC](https://community.localwp.com/t/recover-a-site-deleted-by-mistake/38373/1 "2023-08-01T20:26:55Z")

</div>

Hello, I mistakenly deleted the site I have been working on for many hours  
I found the file in the trash of my computer, put in .ZIP to reintegrate it on Local however I have an error message is displayed “Please try again with a compatible ZIP file”.  
What should I do to make it work and reinstall my version of the site?

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [August 1, 2023, 8:44pm UTC](https://community.localwp.com/t/recover-a-site-deleted-by-mistake/38373/2 "2023-08-01T20:44:45Z")

</div>

Hi @Ods44015

You could attempt a more manual import. The steps would look like this:

- Unzip the file in a common location, like the desktop
- Create a new, blank site in Local. Use whatever username/password you like since you’ll overwrite the DB with this site archive’s dump.
- Copy the wp-content folder from the unzipped location to this newly created site’s location
- Copy the correct SQL dump to the site root.
- Within Local, open the site shell
- Import the dump with `wp db import <dumpfile>`
- If that works, now Search and replace the domains. `wp search-replace ' https://production.com ' 'http:mylocalsite.local'`

For future work in Local, we recommend using the Cloud Backups add on to save and back up your work: [Cloud Backups](https://localwp.com/help-docs/local-add-ons-help/cloud-backups/)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [October 30, 2023, 8:45pm UTC](https://community.localwp.com/t/recover-a-site-deleted-by-mistake/38373/3 "2023-10-30T20:45:39Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
