I have multiselect dropdown which shows me the list of projects (which is a data type) of some customers (which is another data type). Every project name is a thing in project data type, as you can see on below screen, and this project name I am showing in this multiselect dropdown:
You will need to store initial data (in a state).
Compare the list from initial data with remaining list of item, and delete the one that are not in both list.