ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Delete Doctype like it didn't exist


#1

hi guys ,

i need to know how could i delete a DOCTYPE , and remove everything related to it
for example i have a doctype named “SALES” i deleted ,
later, i need to create a new doctype and the name is " SALES" ,
system normally reject that and don’t allow you to make the same name as an existed or deleted doctype name …

Thank you


#2

In the self-hosted ERPNext account, if Developer Mode is on, then after deleting a Doctype, you will have to:

  1. Manually delete related .JSON files (from files folder)
  2. Do Bench Migrate

In the hosted account, on deletion of a Docytpe, related files are auto-deleted.


Delete Doctype ends in errors and strange behavior
#3

Hello @umair,
I have a question,
is there a workaround to auto-delete in a self hosted frappe?

Thanks