Delete budget code

When attempting to delete a budget code I am met with this error:


How would I get around this to get this budget code deleted?

This is because there are Erp.GLBudgetHd records which use the Budget code you are trying to delete.

Go into GL Account Budget Maintenance, there I think you can delete these budget records so you can delete the actual budget code after.

Also possibly referenced in GLBudgetDtl and GLRptCol.