delete warnings and error code lines