<s>[INST] Here is a dictionary with 10 keys:
```
 mydict = {
        "a": 1,
        "b": 2,
        "c": 3,
        "d": 4,
        "e": 5,
        "f": 6,
        "g": 7,
        "h": 8,
        "i": 9,
        "j": 10
    }
```
Here is a list of BAD KEYS:
```
badKeys = ['x', 'i']
```
How would you efficiently iterate through mydict and keep removing keys from the dictionary until all bad keys to have been removed?[/INST]