I can confirm this answer works. You must be patient as it takes a long time to delete, and the Table of Contents or Index of courses does not seem to delete as fast as the actual courses. If doing hundreds, let the delete run for a few hours.