Hi Dimitar,
Since collections are sequences, can I use [1] or [last()] to specify which one to delete?
As per my requirement, I need to be able to delete older resources after some processing (data consolidation).

Thanks for your help.

Best regards,
Anupam


From: Dimitar Popov <Dimitar.Popov@uni-konstanz.de>;
To: <basex-talk@mailman.uni-konstanz.de>; Anupam Bakshi <bakshia@yahoo.com>;
Subject: Re: [basex-talk] Deleting one of many resources at the same path (sorry for hoging the email distribution list)
Sent: Fri, Jun 1, 2012 5:26:29 PM

Am Freitag, 1. Juni 2012, 05:44:46 schrieb Anupam Bakshi:
> Hello all,
>  I've gone thru the documentation but I can't find a way to delete one of
> many resources located at the same path in a database.
>  So if I have :
>
> %  list project1
>  sample1.xml
>  sample1.xml
>
>  Following command deletes both resources at the specified path.
>  % delete sample1.xml
>
>    Is there a way to delete a specific resource, not all of them?

Which one of them would you like to delete?

Regards,
Dimitar