Click or drag to resize

Example 12: Remove a file from the Workspaces Inbox or Sent items

This example is similar to the preceding case, but for a document in the Workspaces Exchange.

C#
Files files = apiSession.GetFilesResource();

// Create an object to specify the documents to delete and if that will be permanent.
DeleteDocumentsSelectionSdsJson documentGuidsJson =
    new DeleteDocumentsSelectionSdsJson
{
    // Set permanent document deletion
    IsPermanent = true,

    // The set of guids for the documents to delete
    DocumentGuids = guidsForDeletion
};

// Call the delete method
BulkOperationResultJson bulkOperationResultJson =
    files.DeleteDocumentsV30(documentGuidsJson);