Overview
This web service deletes a specified document (PwsDocumentRef).
Request Format
- PwsDeleteDocument
- serviceRequest: PwsDeleteDocumentRq
- RequestId: Int32
- SessionTicket: String
- DeletePermanentlyFlag: Boolean
- DocumentIdentity: PwsDocumentRef
- OverrideLockFlag: Boolean
- serviceRequest: PwsDeleteDocumentRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | ||
SessionTicket | String | Yes | Click here for more information. | AQ2QHlYPIcig+lUEf1cCYw== | |
DeletePermanentlyFlag | Boolean | No | false | If set to 'true', the document will be permanently deleted and, will not be retrievable via Projector's "show deleted documents" / "undo" option. | true |
DocumentIdentity | Yes | This is the identity of the document to be deleted | |||
OverrideLockFlag | Boolean | No | false | If set to 'true', the document will be deleted even if it is locked / checked out by another user | false |
Request Usage Example(s)
Response Format
- PwsDeleteDocumentResponse
- PwsDeleteDocumentResult: PwsDeleteDocumentRs
- Messages: PwsMessage
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- DocumentCount: Int32
- NoteCount: Int32
- PwsDeleteDocumentResult: PwsDeleteDocumentRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
ResponseId | Int32 | Click here for more information | 0 |
Status | Click here for more information | Ok | |
ServerTimestampUtc | DateTime | Click here for more information | 2018-02-05T19:17:05.4567739Z |
DocumentCount | Int32 | This is the number of documents that remain within the same folder from which the specified document was deleted | 1 |
NoteCount | Int32 | This is the number of notes that remain within the same folder from which the specified document was deleted | 0 |
Response Usage Example(s)
PwsDeleteDocument - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
10104 | InternalError | Error 75023, State 1: Document cannot be deleted because the document is locked |
75086 | DocumentUpdatePermissionDenied | Error 75086, State 1: Update permission denied (setting = N). Warning: Null value is eliminated by an aggregate or other SET operation. |
75197 | DocumentRefInvalid | DocumentRef is required. |
75199 | DocumentNotFound | Document not found. |