This seems like quite standard text operation for a number of Linux tools (don't mind the technical incorrectness), GNU sed being one of them. Until Bash/Ubuntu comes out for Windows 10, you can use something like git bash which I tested to work for the below command.
sed -i '4,$d' *
Would delete all lines starting from the 4th line in all files in the directory you are in.