Tested on Divi 3.0 which removes the vertical line in post/page with sidebar.

#main-content .container:before {
    display: none;
}

Simple paste the code above in your child theme stylesheet, or divi custom css.