Module not showing when creating new doctype

I created a custom app using bench new-app.
I removed the auto-generated module directory, icon from and name from modules.txt.
I created new module and added its details in modules.txt and


  1. My site shows both modules in “show/hide desktop icons”.
  2. The module I created does not come for selecting while creating a new doctype, but old module which I deleted is visible.

What I tried:
bench clear-cache
bench reboot
bench update

Fixed by

  • adding old name to modules.txt
  • running bench uninstall-app for site
  • remove old name from modules.txt
  • reinstalling app