How to mass delete duplicate GROK patterns?

Hello,
I have exactly the same issue: https://community.graylog.org/t/grok-patterns-defined-twice/3162
I am sure I have never clicked on Apply Content Pack.
I think in my case duplicate entries came from the Graylog update.