JS menghapus li dari ul

var myList = document.getElementById('myList');
myList.innerHTML = '';

//Or with jQuery:
$('#myList').empty();
Witty Wildebeest