def delete_cert(cert_arn, **kwargs):
    """
    Delete a certificate from ACM AWS

    :param cert_arn:
    :return:
    """
    client = kwargs.pop("client")
    metrics.send("delete_acm_cert", "counter", 1, metric_tags={"cert_arn": cert_arn})
    try:
        client.delete_certificate(CertificateArn=cert_arn)
    except botocore.exceptions.ClientError as e:
        if e.response["Error"]["Code"] != "NoSuchEntity":
            raise e

    Delete a certificate from ACM AWS

    :param cert_arn:
    :return:
    
lemur/plugins/lemur_aws/acm.py