The following pdf explains how to delete an enrolment that has invoices linked to it.
The PDF is available here.