function delete-group --argument group
    if empty "$group"
        usage delete-group '<group>'
        return (false)
    end

    print-status delete-group "$argv"

    for policy in (attached-policies group "$group")
        detach-policy group "$group" "$policy"
    end

    for user in (actual-users-in-group "$group")
        delete-from-group "$group" "$user"
    end

    aws iam delete-group --group-name "$group"
end

Add function to delete a group
Add function to delete a group

colstrom/piranha,colstrom/shellops-aws