Remove elements from list

Hi everybody !

I am working the first time with select2.
I have a simple example which works right now:

<select class="phoneNumbers">
  <option value="1234">1234</option>
  <option value="5678">5678</option>
</select>
$('.phoneNumbers').select2({
  tags: true
});

But now I would like to realize:
Each option should has a “delete icon”. If I click on it, this option element should be deleted from list.
I can’t found anything about this in the api documentation. Any idea?

Try select multiple:

<select class="phoneNumbers" id="js-phoneNumbers" name="phone_numbers[]" multiple="multiple">
  <option value="1234">1234</option>
  <option value="5678">5678</option>
</select>
<script>
            $('#js-phoneNumbers').select2({
                placeholder: 'Please select',
            });
</script>