I've made a script that writes a line (%computername%) to a .txt file

Another script that i'am making is reading the (%computername%) from the .txt file and runs a remote job on that computer. This job has to run once, so now I'am looking for a command that can remove the line (%computername%) from the .txt file.

Can somebody please help me.

Thanx.....