How do i delete a line from a txt file?

so. i have a .txt file with some hundreds of arrays.. each array on a separated line
lets say:

#("box01", [0,0,0], 100)
#("box02", [50,50,0], 120)
#("box03", [40,20,10], 80)
#("box04", [80,0,50], 60)

now i want to delete some lines from the .txt..

there is any way to delete only the line 2 for example?

searched on help but there is only read/add methods.. but i am sure there must be some way to do it