def delete_note(note_list, index_of_note):
    """Deletes a note
    @param note_list: a list of NotedItem objects.
    @param index_of_note: the index of the item to delete in the note_list.
    @return: the edited note_list without the item meant to be deleted.
    """
    del note_list[index_of_note]
    return note_list