I stumble upon a few things when working with doctype in related to the database table and files:
When deleting doctype, the folder & files in the custom app’s folder is not also deleted. So when then I make a new doctype with same name, frappe says it’s already exist. I have to delete the folder manually.
When deleting the doctype, also the table in the database is not deleted. So when then making new doctype with same name (after deleting the folder manually), the new doctype relates to the old table.
Moving doctype from one module (or app) to another makes copy, not move the folder. Means the doctype folder is still exist, and in the new module there is new copied folder.
So, is this the normal behaviour? If not, why it happens and how should I rectify it?
I don’t think it relates to version of frappe because other friend of mine on different version also experience it.
And also I don’t think it relates to how it is installed because I did it in the server (self-hosted) and my friend did it in the localhost.