Massive Groups Delete

Hi,
is possible to delete more group in massive mode or by code?

I have created more than 100 groups by mistake and would like to delete them.

Tanks.