Documents: DeleteDocument

Permanently deletes a document. To find the documentId of a document that you want to delete, use the Rooms::GetDocuments method.

If the document is deleted successfully, the HTTP response code is 204 (No Content), so the response body is empty.

Request

HTTP request

DELETE /restapi/v2/accounts/{accountId}/documents/{documentId}

Parameters

Parameter NameValueDescription
Path Parameters
documentIdinteger

The ID of the document.

accountIdstring

The globally unique identifier (GUID) for the account.

Responses

CodeDescriptionReference
204

Document has been successfully deleted.

400

Bad request. See ErrorCode and Message for details

ApiError
401

Not authorized to make this request.

ApiError

SDK Method

Documents::DeleteDocument

Definitions

ApiError

This object describes errors that occur. It is valid only for responses and ignored in requests.

errorCodestring

The code associated with the error condition.

messagestring

A brief message describing the error condition.

}} />