def METHOD_NAME(client, sample_service):
    with freeze_time("2001-01-01"):
        template = create_template(sample_service, template_name="a")
        api_key = create_api_key(sample_service)
        expire_api_key(sample_service.id, api_key.id)
        template.archived = True
        dao_update_template(template)
    with freeze_time("2002-02-02"):
        auth_header = create_authorization_header()
        response = client.post("/service/{}/archive".format(sample_service.id), headers=[auth_header])
    assert response.status_code == 204
    assert response.data == b""
    return sample_service