CSV is a simple structured file lacking more complex features like deleting single rows. To delete a row, you have to instead read in every row from the file, writing each row back out to a new file, except the one that you're wanting to effectively delete. When you're done, you can delete the original file and rename the new file to the name of the original file.
Bruce Dunwiddie