Can I delete courses and course sections?

Yes, if it isn't associated with a course section. Set the status of the course to inactive on the Details tab to delete a course.

You can also delete a course section if no students are enrolled in it. Set the status to canceled on the Details tab to delete a course section.