You could either use WriteProfileString OR if you want the line deleted all together use Open and ReadLine to recreate a new instance of the file. Read each line and use SubStr to look for what you want to delete. If the line doesn't match write it into the new version then when you do get a match (ie you are at the line you want to delete) don't write it in.
Hope this makes sense.