app/controllers/StudentCourseController.java
/**
     * delete course application functionality
     * @param courseId
     * @return
     */
delete course application functionality
@param courseId
@return
delete course application functionality @param courseId @return
public static Result deleteApplication(Long courseId) {
        Student student = Student.findByStudentUsername(session("studentUsername"));
        StuCourse stuCourse = StuCourse.findByStuIdCourseIdStatus(student.studentId, courseId, "Saved for later");
        Ebean.delete(StuCourse.class, stuCourse.stuCourseId);
        return redirect(
                routes.AccountController.myAccount()
        );
    }
public static Result deleteApplication ( Long courseId ) { Student student = Student . findByStudentUsername ( session ( "studentUsername" ) ) ; StuCourse stuCourse = StuCourse . findByStuIdCourseIdStatus ( student . studentId , courseId , "Saved for later" ) ; Ebean . delete ( StuCourse . class , stuCourse . stuCourseId ) ; return redirect ( routes . AccountController . myAccount ( ) ) ; }
delete course application functionality
 @param courseId
 @return
delete course application functionality @param courseId @return
//get logged in student from the db //get the student course by courseid student id and status //delete the student course