You can delete a WhatsApp group that you created or that you are the admin of. Here's how to do it on iPhone or Android.
Unless everyone is using iMessage, there's no way to remove yourself from a group text — you'll need to mute or block it.