Hello Christian, Dimitar,
Thanks for your replies and helpful suggestions. (BTW, the collections('path')[1] did not work).
The workarounds are not ideal because what I was hoping to implement was a FIFO (first in first out) flow, where documents come in at a different pace than the pace at which they are consumed. The two operations are asynchronous.
I'll try and use the workarounds you suggested. Although it would have been nice to have that feature ( be able to specify the resource that has to be deleted on the same path).
Best regards, Anupam