Problem DELETE /rest/wikis/xwiki/aiLLM/collections/<name> answers 500 for a collection that indexes wiki pages, and the collection is not deleted. Collections whose documents were uploaded through the API are deleted correctly. Steps to reproduce
- Create a collection that indexes the pages of a wiki space.
- Send DELETE /rest/wikis/xwiki/aiLLM/collections/<name>.
Result The response is an error 500 and the collection still exists. Expected The collection and its chunks are removed. The wiki pages it indexed are left untouched. Cause Deleting a collection first deletes each of its documents. For a collection that indexes wiki pages the documents are the wiki pages themselves, which the collection must not delete, so that step is refused and the whole deletion fails. |