Remove element with parameter

Remove element with parameter

var k = $(".class").index(this);

i want to remove <li> element in the same way. I tried it with .get(k), but it didn't work. Most likely i didn't get the idea how to do it.

<li>one</li>
<li>two</li>
<li>three</li>
So how to remove a second <li> tag with a parameter? Thank you in advance.