There's nothing that can actually delete lines from an existing file, that I'm aware of.
You'll have to do something like this:
get-content test.txt|select-object -last ((get-content test.txt).count - 9)|out-file test2.txt
What you're doing is creating a new file. You could then overwrite the original with the new.
Marco