every line which you need to delete is inside the block. So what you need to do that is you have to select a line and a block and find out whether that line starting and end point inside of a block or not. if it is then you can delete that line. to find the algorithm and you can go through below link
Access a broad range of knowledge to help get the most out of your products and services.