Select 2 reload data with ajax on opening

I need to reload data in a select2 component with ajax on opening. When I open a select element for the first time, I see a slight delay due to loading data. When I open it again with new data, a previous data set is show for a short while. How can I clear the previous data properly? When I open it on the fly, it is not in the select itself. It is somewhere else.