def METHOD_NAME(name, region=None, key=None, keyid=None, profile=None):
    """
    Ensure the named cloudwatch alarm is deleted.
    name
        Name of the alarm.
    region
        Region to connect to.
    key
        Secret key to be used.
    keyid
        Access key to be used.
    profile
        A dict with region, key and keyid, or a pillar key (string)
        that contains a dict with region, key and keyid.
    """
    ret = {"name": name, "result": True, "comment": "", "changes": {}}
    is_present = __salt__["boto_cloudwatch.get_alarm"](
        name, region, key, keyid, profile
    )
    if is_present:
        if __opts__["test"]:
            ret["comment"] = "alarm {} is set to be removed.".format(name)
            ret["result"] = None
            return ret
        deleted = __salt__["boto_cloudwatch.delete_alarm"](
            name, region, key, keyid, profile
        )
        if deleted:
            ret["changes"]["old"] = name
            ret["changes"]["new"] = None
        else:
            ret["result"] = False
            ret["comment"] = "Failed to delete {} alarm.".format(name)
    else:
        ret["comment"] = "{} does not exist in {}.".format(name, region)
    return ret