"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deleteConfiguration = deleteConfiguration; var _get_apm_indices = require("../apm_indices/get_apm_indices"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ async function deleteConfiguration({ configurationId, internalESClient }) { const params = { refresh: 'wait_for', index: _get_apm_indices.APM_AGENT_CONFIGURATION_INDEX, id: configurationId }; return internalESClient.delete('delete_agent_configuration', params); }