Re: Not able to remove a collection

Juri Leino <[email protected]> Mon, 19 May 2025 10:15:03 +0200
Newsgroups gmane.text.xml.exist
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============5206574153701473924==
Content-Type: multipart/alternative;
 boundary="------------Vp5fd0Re3rMmrUtPNbTOmfrt"
Content-Language: en-GB

This is a multi-part message in MIME format.
--------------Vp5fd0Re3rMmrUtPNbTOmfrt
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Hello Seena Sanil!

It would help a lot to know the version of the eXist-db instance you are=20
working with. To my knowledge a similar issue was reported and fixed=20
some time ago. This information, along with operating system and java=20
version is generally helpful when posting questions here.

However, theses are additional methods to remove a collection in an=20
eXist-db instance that come to my mind:

- evaluating an XQuery calling xmldb:remove in eXide or other means
https://exist-db.org/exist/apps/fundocs/index.html?q=3Dxmldb%3Aremove&act=
ion=3Dsearch&type=3Dname

- using the XML-RPC API eXist-db offers which has a remove collection=20
endpoint
 =C2=A0 one available command line client is xst=20
https://www.npmjs.com/package/@existdb/xst

- the java admin client should also offer a similar functionality

If none of the above work you could

- save all other resources and subcollections next to the one you cannot=20
remove

- then remove the parent collection (regsum-ref in your case)


Hope this helps,

Juri Leino


On 16.05.25 15:23, Sanil, Seena via Exist-open wrote:
>
> Hi,
>
> When we try to remove a collection either through the UI or through=20
> calling the rest API we get this error. Is there any other way to=20
> remove the collection?
>
> Please advise.
>
> Thanks.
>
>
>
> _______________________________________________
> Exist-open mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/exist-open
--------------Vp5fd0Re3rMmrUtPNbTOmfrt
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body>
    <p>Hello Seena Sanil!</p>
    <p>It would help a lot to know the version of the eXist-db instance
      you are working with. To my knowledge a similar issue was reported
      and fixed some time ago. This information, along with operating
      system and java version is generally helpful when posting
      questions here.</p>
    <p>However, theses are additional methods to remove a collection in
      an eXist-db instance that come to my mind:<br>
      <br>
      - evaluating an XQuery calling xmldb:remove in eXide or other
      means<br>
      =C2=A0
<a class=3D"moz-txt-link-freetext" href=3D"https://exist-db.org/exist/app=
s/fundocs/index.html?q=3Dxmldb%3Aremove&amp;action=3Dsearch&amp;type=3Dna=
me">https://exist-db.org/exist/apps/fundocs/index.html?q=3Dxmldb%3Aremove=
&amp;action=3Dsearch&amp;type=3Dname</a><br>
    </p>
    <p>- using the XML-RPC API eXist-db offers which has a remove
      collection endpoint<br>
      =C2=A0 one available command line client is xst
      <a class=3D"moz-txt-link-freetext" href=3D"https://www.npmjs.com/pa=
ckage/@existdb/xst">https://www.npmjs.com/package/@existdb/xst</a></p>
    <p>- the java admin client should also offer a similar functionality<=
/p>
    <p>If none of the above work you could <br>
    </p>
    <p>- save all other resources and subcollections next to the one you
      cannot remove</p>
    <p>- then remove the parent collection (regsum-ref in your case)</p>
    <p><br>
    </p>
    <p>Hope this helps,</p>
    <p>Juri Leino</p>
    <div class=3D"moz-cite-prefix"></div>
    <p><br>
    </p>
    <div class=3D"moz-cite-prefix">On 16.05.25 15:23, Sanil, Seena via
      Exist-open wrote:<br>
    </div>
    <blockquote type=3D"cite"
cite=3D"mid:[email protected]=
.prod.outlook.com">
      <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DU=
TF-8">
      <meta name=3D"Generator"
        content=3D"Microsoft Word 15 (filtered medium)">
      <style>@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
	{font-family:Aptos;
	panose-1:2 11 0 4 2 2 2 2 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:12.0pt;
	font-family:"Aptos",sans-serif;
	mso-ligatures:standardcontextual;}.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	mso-ligatures:none;}div.WordSection1
	{page:WordSection1;}</style>
      <div class=3D"WordSection1">
        <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">Hi,<o:p><=
/o:p></span></p>
        <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">When we t=
ry
            to remove a collection either through the UI or through
            calling the rest API we get this error. Is there any other
            way to remove the collection?<o:p></o:p></span></p>
        <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"><o:p>=C2=A0=
</o:p></span></p>
        <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">Please
            advise.<o:p></o:p></span></p>
        <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">Thanks.<o=
:p></o:p></span></p>
      </div>
      <br>
      <fieldset class=3D"moz-mime-attachment-header"></fieldset>
      <br>
      <fieldset class=3D"moz-mime-attachment-header"></fieldset>
      <pre wrap=3D"" class=3D"moz-quote-pre">____________________________=
___________________
Exist-open mailing list
<a class=3D"moz-txt-link-abbreviated" href=3D"mailto:[email protected]=
rceforge.net">[email protected]</a>
<a class=3D"moz-txt-link-freetext" href=3D"https://lists.sourceforge.net/=
lists/listinfo/exist-open">https://lists.sourceforge.net/lists/listinfo/e=
xist-open</a>
</pre>
    </blockquote>
  </body>
</html>

--------------Vp5fd0Re3rMmrUtPNbTOmfrt--


--===============5206574153701473924==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5206574153701473924==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open

--===============5206574153701473924==--