Select All/Deselect All on Select2 Multiple options (AJAX)

How do I implement a Select All/Deselect All on Select2 Multiple options with an AJAX Datasource?