How to remove a list from a list of lists if it exists in another list of lists

The logic is complex and will not work if you use make a list in index in list

You can refer to this
To-Do List | Using Dynamic Components