/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import t from"../../../request.js";import{parseUrl as i,encode as r,asValidOptions as s}from"../../utils.js";import o from"./support/EditCircuitsResult.js";async function c(c,u,e){const m=i(c),n=u.toJSON();u.circuits&&(n.circuits=JSON.stringify(u.circuits));const p={...n,f:"json"},f=r({...m.query,...p}),a=s(f,{...e,method:"post"}),d=`${m.path}/circuits/delete`,{data:j}=await t(d,a);return o.fromJSON(j)}export{c as deleteCircuits};
