fix: delete portal settings for education doctypes
diff --git a/erpnext/patches/v14_0/delete_education_doctypes.py b/erpnext/patches/v14_0/delete_education_doctypes.py
index 76b2300..24b9fa1 100644
--- a/erpnext/patches/v14_0/delete_education_doctypes.py
+++ b/erpnext/patches/v14_0/delete_education_doctypes.py
@@ -44,6 +44,9 @@
 
 	doctypes = frappe.get_all("DocType", {"module": "education", "custom": 0}, pluck="name")
 	for doctype in doctypes:
+		frappe.delete_doc(
+			"Portal Menu Item", {"reference_doctype": doctype}, ignore_missing=True, force=True
+		)
 		frappe.delete_doc("DocType", doctype, ignore_missing=True)
 
 	frappe.delete_doc("Module Def", "Education", ignore_missing=True, force=True)