import { Setup } from '../../../lib/helpers/setup_request' ; export async function deleteConfiguration ( { configurationId , setup , } ) { const { internalClient , indices } = setup ; const params = { refresh : 'wait_for' as const , index : indices . apmAgentConfigurationIndex , id : configurationId , } ; return internalClient . delete ( 'delete_agent_configuration' , params ) ; }