While using the opt-in domain model integrations are filtered correctly but remotePlugins are not. A brief look into the code looks like we are filtering on the original array, rather than the copy so only the last filter will take effect. I could raise a PR for this
Code in question:
cdnSettingsCopy.remotePlugins = remotePlugins?.filter( (p) => p.creationName !== creationName)
should be something like:
cdnSettingsCopy.remotePlugins = cdnSettingsCopy.remotePlugins?.filter( (p) => p.creationName !== creationName)