Example 11: Delete a file from a workspace |
This example deletes one or more documents from a room. The server will return an object that indicates success, or details about any error that may have occurred.
Resource.Workspaces workspaces = apiSession.GetWorkspacesResource(); // Create an object to specify the documents to delete and if that will be permanent. DeleteDocumentsSelectionVdrJson documentGuidsJson = new DeleteDocumentsSelectionVdrJson { // Set permanent document deletion IsPermanent = true, // The set of guids for the documents to delete DocumentGuids = guidsForDeletion }; // Call the delete method BulkOperationResultJson bulkOperationResultJson = workspaces.DeleteDocumentsV30(roomId, documentGuidsJson);