score:-1

You can use this script to remove all ticks on y axis.

d3.selectAll(".y.axis").selectAll(".tick").selectAll("line").remove();

score:0

Better use CSS

.y.axis .tick line:first-child, 
.y.axis .tick line:last-child{
   opacity: 0;
}

Related Query

More Query from same tag