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

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

        revoke-access-keys "$user"
        unset-password "$user"
        deactivate-mfa "$user"
        aws iam delete-user --user-name "$user"
    end
end

Add function to delete a user
Add function to delete a user

colstrom/shellops-aws,colstrom/piranha