The API will remove the CPE from Mongo.

Put this on line 19ish of your script:

sed -i 's/%/%25/g' data.txt

That will encode the % in the acs id.

-dan


On Tue, Jan 16, 2018 at 5:05 PM, Alfred George <[email protected]>
wrote:

> Hi Dan,
>
> Iam getting this results
> HTTP/1.1 200 OK
>
> Date: Wed, 17 Jan 2018 03:17:24 GMT
>
> Connection: keep-alive
>
> Transfer-Encoding: chunked
>
>
>
> Can you let me know whether  this API totally remove CPE from my database?
>
>
>
> *From:* Users [mailto:[email protected]] *On Behalf Of *Alfred
> George
> *Sent:* Wednesday, January 17, 2018 11:56 AM
> *To:* 'Community support for GenieACS users' <[email protected]>
> *Subject:* RE: How to clear all CPE
>
>
>
> See Attached.. I have also included task API in my code testing purposes.
>
>
>
> Thanks
>
> Alfred G
>
>
>
> *From:* Users [mailto:[email protected]
> <[email protected]>] *On Behalf Of *Dan Morphis
> *Sent:* Wednesday, January 17, 2018 11:08 AM
> *To:* Community support for GenieACS users <[email protected]>
> *Subject:* Re: How to clear all CPE
>
>
>
> Can you please send the code so I can look at it? Send the file with your
> device ids in it too please.
>
>
>
> On Tue, Jan 16, 2018 at 3:06 PM, Alfred George <[email protected]>
> wrote:
>
> ${device_ID} is my variable run in while loop…
> my code will:
> - collect device ID store in txt file
> - while read line txt file and delete each device
>
>
>
> Alfred G
>
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.genieacs.com/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to