select2 destroy and clear code example
Example 1: select2 clear options
Remove the selected options :
-----------------------------
$('#mySelect2').val(null).trigger('change');
============================================
Completly remove the select2 initialization :
--------------------------------------------
$('#payment_method').html('').select2({data: [{id: '', text: ''}]});
Example 2: select2 destroy
if ($('#mySelect2').hasClass("select2-hidden-accessible")) {
$('#mySelect2').select2('destroy');
}