def parse_courses(courses):
    """
    Parse information of all courses that are retrieved from Moodle.

    :param courses: Statements for all courses.
    :type courses: list(dict(str, int))
    :return: A dictionary containing the names and ids of all courses.
    :rtype: list(dict(str, int))
    """
    courses = courses[:]
    del courses[0]
    course_info = [{"courseId": course['id'], "name": course['fullname']} for course in courses]
    return course_info