Please have a look at
This file contains the code how we match the order status of WooCommerce and remove enrollment.
The Pro version also has a mechanism to manually remove enrollment. That is located at
There are two sections. One starts at line no 121 for cancellation and another at line 131 for deletion.
Please note that we have plans to organize this process in a better way to integrate with external systems. We will update this document as soon as the new system is available.