def METHOD_NAME(gwid=None, key=None):
    """
    this function deletes an option of a gateway definition
    :param gwid: The id of the sms gateway definition
    :return: json with success or fail
    """
    type = "option"
    if "." in key:
        type, key = key.split(".", 1)
    res = delete_smsgateway_key_generic(gwid, key, Type=type)
    g.audit_object.log({"success": res,
                        "info": "{0!s}/{1!s}".format(gwid, key)})
    return send_result(res)