# Add delete and refresh

**URL:** <https://forum.genieacs.com/t/add-delete-and-refresh/2989>\
**Category:** Uncategorized\
**Created:** [September 23, 2022, 8:57am UTC](https://forum.genieacs.com/t/add-delete-and-refresh/2989 "2022-09-23T08:57:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![braidiano](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@braidiano](https://forum.genieacs.com/u/braidiano)\
**Post date:** [September 23, 2022, 8:57am UTC](https://forum.genieacs.com/t/add-delete-and-refresh/2989/1 "2022-09-23T08:57:36Z")

</div>

I need to perform the following operation in a provision script:

```auto
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2 **Delete**
InternetGatewayDevice.WANDevice.1.WANConnectionDevice **Add**
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2 **Refresh**
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection **Add**

```

i tried:

```auto
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.*",null, {path: 0} ); // delete
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice",null, {path: 1}); //add
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.*",{path: Date.now()}); //referesh
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection", {path: 1}); //add
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.*",{path: Date.now()}); //refresh

```

but doesnt works, the provision go in fault state

```auto
faultCode: "9003"
faultString: Invalid arguments
setParameterValuesFault: null

```

what is wrong?  
can someone explain me a bit of teory of how is working in background the GenieACS so i can understand hot to properly use the declare function ?? (i read the genie ACS docs, but it seems that you already know how the things is working…)
