I have a custom app, previously i have created two modules with some doctypes and report now I want to remove it. What is the best approach
hello @management
I think the best approach is to manually delete all related DocTypes, Reports via the UI first to ensure database cleanup, then:
- Remove module files/folders from your app.
- Update
hooks.py
to remove references. - Run
bench --site sitename migrate
.
For removing app from site :
bench --site sitename uninstall-app appname
bench remove-app appname