Sub-department should be deleted first from >Company>Sub-Department. Note: Deletion is possible only if department and sub-department has not been attached to any employee.