delete linked course to professor

works and refreshes view with courses that are still linked