def delete(destination_id):
    """
    Deletes an destination.

    :param destination_id: Lemur assigned ID
    """
    destination = get(destination_id)
    if destination:
        # remove association of this source from all valid certificates
        certificates = certificate_service.get_all_valid_certificates_with_destination(destination_id)
        for certificate in certificates:
            certificate_service.remove_destination_association(certificate, destination)
            current_app.logger.warning(
                f"Removed destination {destination.label} for {certificate.name} during destination delete")

        # proceed with destination delete
        log_service.audit_log("delete_destination", destination.label, "Deleting destination")
        database.delete(destination)

    Deletes an destination.

    :param destination_id: Lemur assigned ID
    
lemur/destinations/service.py