Below API allows to perform various actions like , delete group icon, delete group invite link, leave from group etc
A group will become inactive when it doesn't have any members. So if you want to delete a group then first delete the group invite link then remove all members and admin from the group and last you can leave yourself from the group.