def METHOD_NAME(name, store, saltenv="base"):
    """
    Remove a certificate from the given certificate store
    Args:
        name (str):
            The path to the certificate to remove from the store. This is either
            the path to a local file or a file from the file server in the form
            of ``salt://path/to/file``
        store (str):
            The certificate store to remove the certificate from
        saltenv (str):
            The salt environment to use. This is ignored if the path is local
    Returns:
        dict: A dictionary containing the results
    CLI Example:
    .. code-block:: yaml
        remove_certificate:
          certutil.del_store:
            name: salt://web_cert.cer
            store: TrustedPublisher
    """
    ret = {"name": name, "result": True, "comment": "", "changes": {}}
    cert_file = __salt__["cp.cache_file"](name, saltenv)
    if cert_file is False:
        ret["comment"] = "Certificate file not found: {}".format(name)
        ret["result"] = False
        return ret
    cert_serial = __salt__["certutil.get_cert_serial"](name)
    if cert_serial is None:
        ret["comment"] = "Invalid certificate file: {}".format(name)
        ret["result"] = False
        return ret
    old_serials = __salt__["certutil.get_stored_cert_serials"](store=store)
    if cert_serial not in old_serials:
        ret["comment"] = "Certificate already absent: {}".format(name)
        return ret
    if __opts__["test"]:
        ret["comment"] = "Certificate will be removed: {}".format(name)
        ret["result"] = None
        return ret
    retcode = __salt__["certutil.del_store"](name, store, retcode=True)
    if retcode != 0:
        ret["comment"] = "Error removing certificate: {}".format(name)
        ret["result"] = False
        return ret
    new_serials = __salt__["certutil.get_stored_cert_serials"](store=store)
    if cert_serial not in new_serials:
        ret["changes"]["removed"] = name
        ret["comment"] = "Removed certificate: {}".format(name)
    else:
        ret["comment"] = "Failed to remove certificate: {}".format(name)
        ret["result"] = False
    return ret