Skip to content

ndi.cloud.api.documents.deleteDocument

 DELETEDOCUMENT User-facing wrapper to delete a single document.

    [B, ANSWER, APIRESPONSE, APIURL] = ndi.cloud.api.documents.deleteDocument(CLOUDDATASETID, CLOUDDOCUMENTID)

    Deletes a single document from a specified dataset on the NDI Cloud.

    Inputs:
        cloudDatasetID   - The ID of the dataset containing the document.
        cloudDocumentID  - The cloud API ID of the document to delete.

    Outputs:
        b            - True if the call succeeded, false otherwise.
        answer       - The API response body on success, or an error struct on failure.
        apiResponse  - The full matlab.net.http.ResponseMessage object.
        apiURL       - The URL that was called.

    Example:
        [success, resp] = ndi.cloud.api.documents.deleteDocument('d-12345', 'doc-abcde');

    See also: ndi.cloud.api.implementation.documents.DeleteDocument