You said it doesn't work.
You posted your code.
What do you expect!
The "Range" and "Delete" commands to remove a row work perfectly. I've just tried them. I didn't see any problem with that line. But did see plenty other problems and inconsistencies in the code.
But if we're going to jump down each others throats .....
Posting a load of bad code. Along with "it doesn't work" ... is not very helpful. Stating where it actually fell over, and what the error message was, would be a lot more helpful than adding a comment against one line saying "IT DOESN'T WORK!". And it does work. As I say, I just tried it myself. Worked perfectly.
You don't have to use "Range" either. You could also use "Rows".
First google result searching for your problem?
http://stackoverflow.com/questions/2160170/delete-rows-in-excel-sheet-using-javascript
However, I suspect the problem is that the "Delete" method needs "()" added in JavaScript. (I think - as I said, I'm not a JavaScript user ....)