Problem finding index of item to delete

Hey, I have a list and I would like to delete items from it but they are saved in a local storage under

Key : #+1
Value : Item Name

But the problem is that the first item deleted has the correct index and I can find it’s key easily, but once I start deleting items from the list, the index isn’t representative and so it doesn’t delete the item from the storage. Do you have any suggestions on how to get the correct index ? Thanks !

Please note that adding +1 per deleted item isn’t possible because the index can also be placed the before the key number and so the index + deleted numbers would be wrong. so I really am lost :confused: