Hi Mahi, 
you can easily delete a bunch of items from a collections using AQL like 
this: (like you would execute it in arangosh, which in term will use the 
REST api)

db._query("FOR item IN test FILTER item._key IN @listToDelete REMOVE item  
IN test", {listToDelete: ['key1', 'key2']})

as I did with the '_key' attribute you have to specify an attribute to 
match for agains the array in the bind values.

Hope this helps, 

Willi

On Tuesday, May 17, 2016 at 1:11:10 PM UTC+2, [email protected] wrote:
>
> Hi,
>
> I'm looking for an API to perform a bulk delete in ArangoDB. How could i 
> do it?
>
> I have gone through the below link... but i felt it is too tedious.
> https://docs.arangodb.com/HttpBatchRequest/index.html
>
> Actually i'm looking for some thing simpler way like bulk import syntax 
> (pasted below for your reference)
>
> curl --data-binary @- -X POST --dump - 
> "http://localhost:8529/_api/import?collection=test&createCollection=true";
> [ "firstName", "lastName", "age", "gender" ]
> [ "Joe", "Public", 42, "male" ]
> [ "Jane", "Doe", 31, "female" ]
>
> Please help me in this regard.
>
> Thanks in advance
>
> - Mahi 
>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to