extend delete command so it can delete list elemets using index