MDL-17445 course deletion cleanup and adding new event that is triggered after removing course content