If you delete the course, it is gone. There are no activities in existence to remember grades. Hide the course or put it in a hidden category. Or, I suppose, you could do a full backup and save it somewhere then delete the course. If you need the user data later, you could restore the backup. But I wouldn't.
Courses and course formats
Course Deletion and User Data
This discussion has been locked so you can no longer reply to it.