How to mass delete duplicate GROK patterns

All my GROK patterns are duplicated inside Graylog. I’m pretty sure that is my fault, I must have imported the same pack twice. Deleting them one by one will take hours, is there a quicker way?

Duplicate of How to mass delete duplicate GROK patterns?