Plumtree EDK (Enterprise Web Development Kit) 5.4.0

IDocumentManager.RemoveDocument Method 

Deletes the document.

void RemoveDocument(
   IDocument document
);

Parameters

document
The document to be deleted. Cannot be null.

Remarks

To perform this operation the current user must have ADMIN rights on the document. This can be checked by calling IDocument.IsActionAllowed(DocumentPermissions.Delete). Note: if this document is currently checked out, this call will attempt to undo this check-out before deletion.

Exceptions

Exception TypeCondition
PermissionDeniedException The user does not have permission to delete the document.
CollaborationException The method call resulted in an error, the object does not exist or the user does not have access to it.
SoapException There is a communication problem during the execution of the remote method call.

See Also

IDocumentManager Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace