... it already removes the to be removed data types in this function instead of identifying the nodes and let the OpenSCD core instance to the remove.