---
title: "Data cleanup process on restored site for testing"
space: "Wiki"
url: "https://support.aakvatech.com/data_cleanup_process_on_restored_site_for_testing"
updated: "2026-07-22"
---

Steps for Data cleanup process on restored site for testing

1. Backup database (and files if required) Preferred not to restore site\_config.json but make manually changes and do not bring in encryption\_key
2. Restore database using bench command and flags for restoring private and public files.
3. Remove unnecessary apps using bench remove-from-installed-apps
4. Get latest frappe and erpnext apps and all other dependent apps
5. bench restart & bench build to reflect updated apps.
6. bench migrate to apply latest apps on the restored site.
7. Reset Administrator password using bench
8. Disable all scheduled activities like webhooks, bulk webhooks, scheduled jobs, email accounts, etc.
