AquaLogic Interaction Development Kit (IDK) 6.0.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 the check-out before deletion.

#### Exceptions

Exception Type | Condition
--- | ---
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 was a communication problem during the execution of the remote method call.

#### See Also

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