Deletes from editcourse and redirects to courses