How to restore from backup when you have custom apps

Is it possible to uninstall custom apps from the database before restoring the site ?

try below:

bench --site <site_name> remove-from-installed-apps <app_name>
bench --site <site_name> uninstall-app <app_name>

check for install app:
select parent, parentfield, parenttype, defvalue, defkey from tabDefaultValue
where defkey = ‘installed_apps’
order by parent;

1 Like