There was such a question. There is, for example, the list itself, in which we have entered sections with goods. How can I delete any product of my choice without deleting the section itself?
If I understood you correctly, then you should rather use a dictionary than a list, where it will be easier to access the key / value, and you will win in speed.