def METHOD_NAME(module, dt, dn):
	if frappe.db.get_value("Module Def", module, "custom"):
		module_path = get_custom_module_path(module)
	else:
		module_path = get_module_path(module)
	dt, dn = scrub_dt_dn(dt, dn)
	# delete folder
	folder = os.path.join(module_path, dt, dn)
	if os.path.exists(folder):
		shutil.rmtree(folder)