def METHOD_NAME():
    deadline = time.time() + .4
    while True:
        time.sleep(0.05)
        if time.time() > deadline:
            raise(Exception("Timed out waiting for Akamai purge"))
        response = requests.get("http://localhost:6789/debug/get-purges")
        purgeData = response.json()
        if len(purgeData["V3"]) == 0:
            continue
        break
    reset_akamai_purges()