Click or drag to resize

DocumentsClientDeleteDocument Method

Syntax
C#
public Result DeleteDocument(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: DocumentsServiceManagementGroupRequestOfguid

Return Value

Type: Result
Examples
C#
using (var svc = new DocumentsService.DocumentsClient())
{
  var request = new DocumentsService.ManagementGroupRequestOfguid();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin
  request.Value = new Guid("0631c7a2-8ba1-4863-b13a-38304b57b835");; // Required - RSN of document to be deleted

  DocumentsService.Result result = svc.DeleteDocument(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also