Delete Course
To delete a course only users with a role for which the capability "moodle/course:delete" is allowed are able to delete i.e managers and administrators. Teachers are not able to delete course as well as course creators. Course creators by default are allowed to delete courses they have created within 24 hours. This is so that courses created by mistake may be deleted without needing to ask an administrator.
To delete a course as a manager or an administrator: