echo '&user@domain.name' > ~admin/.qmail-backup
What is the command to undo or remove that action?
Open the file in a text editor and remove the line.
No, delete the file.
Even if other lines might be in there? I know your suggested command replaces all the content, but there could be more lines added or am I wrong here?