Hi
So far I was adding documents and querying using Python API (generally sending commands to BaseX).

Now I need to delete some documents. What is the most effective method?
  1. drop db
    I would have to recreate it very soon.
    I am a bit concerned by other clients being connected to the same database
  2. loop in Python performing delete command one document by one
  3. do some sort of xquery in style "for $doc in collection() return (delete base-uri($doc))"
    Note, that this does not work, but there might be some way like this similar to insert or update mechanism
Any ideas or hints?

Thanks for advice

Jan
--
Ing. Jan Vlčinský
CAD programy
Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic
tel: +420-597 602 024; mob: +420-608 979 040
skype: janvlcinsky; GoogleTalk: jan.vlcinsky@gmail.com
http://cz.linkedin.com/in/vlcinsky