def METHOD_NAME(
    name,
    password,
    keychain="/Library/Keychains/System.keychain",
    keychain_password=None,
):
    """
    Uninstall a p12 certificate file from the macOS keychain
    name
        The certificate to uninstall, this can be a path for a .p12 or the friendly
        name
    password
        The password for the certificate being installed formatted in the way
        described for openssl command in the PASS PHRASE ARGUMENTS section
    cert_name
        The friendly name of the certificate, this can be used instead of giving a
        certificate
    keychain
        The keychain to remove the certificate from, this defaults to
        /Library/Keychains/System.keychain
    keychain_password
        If your keychain is likely to be locked pass the password and it will be unlocked
        before running the import
    """
    ret = {"name": name, "result": True, "comment": "", "changes": {}}
    certs = __salt__["keychain.list_certs"](keychain)
    if ".p12" in name:
        if "http" in name or "salt" in name:
            name = __salt__["cp.cache_file"](name)
        friendly_name = __salt__["keychain.get_friendly_name"](name, password)
    else:
        friendly_name = name
    if friendly_name in certs:
        out = __salt__["keychain.uninstall"](friendly_name, keychain, keychain_password)
        if "unable" not in out:
            ret["changes"]["uninstalled"] = friendly_name
        else:
            ret["result"] = False
            ret["comment"] += "Failed to uninstall {}".format(friendly_name)
    else:
        ret["comment"] += "{} already uninstalled.".format(friendly_name)
    return ret