Remove specific string from List in /data, without knowing where it is in said list

I need to find a way to delete a specific string from a List stored in storage:"sbm1:storage", nbt:"inv_items". Problem is I don't know where it will be in the List nor what the List will look like at the moment, so I can't simply replace the whole List with a copy of itself minus the desired string.

Continue to help post