@Marc Hollyoak Thanks for the question. Yes, you can use the 'sources' set to List of source to be deleted from knowledgebase. Can you please share the sample and any error that you are getting.
Here is the quickstart sample using preview SDK.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi team,
I understand that I can add another file to an existing KB via API using Update (Add) KB using 'fileName' and 'fileURI' of FileDTO:
https://learn.microsoft.com/en-us/rest/api/cognitiveservices-qnamaker/qnamaker5.0preview2/knowledgebase/update#add
However, after the file is uploaded, is it possible to delete the same file via API (as you can easily do in the QnA Maker portal). The delete function refers to 'sources', but not 'fileName' as in the FileDTO: https://learn.microsoft.com/en-us/rest/api/cognitiveservices-qnamaker/qnamaker5.0preview2/knowledgebase/update#delete.
1) Do I use this delete function with 'sources' set to the 'fileName(s)' required to be deleted?
2) Is 'fileName' just used as a label 'source' within the KB, thus QnA Maker uses the 'fileURI' only to locate and upload the file?
Many thanks
Marc
@Marc Hollyoak Thanks for the question. Yes, you can use the 'sources' set to List of source to be deleted from knowledgebase. Can you please share the sample and any error that you are getting.
Here is the quickstart sample using preview SDK.