Unlock all local guides?

I have a glyph with a lot of guides (like a grid). I selected all the guides and locked them with one click. But then I wanted to remove many of them and realized that it is not possible to unlock all local guides at the same time?

Run this in Macro window:

for guide in Layer.guides:
    guide.locked = False
1 Like