Before deleting the group, make sure that all attachments are disconnected from it, namely:
from the incoming or outgoing direction of the number.
from the IVR (interactive voice response menu).
Disconnect from all attachments, and then you will be able to delete the group