def delete_metric(conn, metric):
    delete_url = conn.delete_metric_url + str(metric)
    r = requests.delete(delete_url)
    if r.status_code != 204:
        LOG.exception('deletion of metric %s failed. Status code: %s') % (
            metric, r.status_code)
        raise
Deletes metric and all it's datapoints from the database.
dataset/ETHPy150Open pcn/pyKairosDB/pyKairosDB/deleter.py/delete_metric