%List.Delete(ListName,ElementIndex)The parameter ElementIndex is the element index. The element index has a range from 0 till (number of elements)-1. If you want to delete the last element you can use the word Last instead of an element index.
%List.Delete(MyList,3) %List.Delete(MyList,Last)