/// <summary>Snippet for DeleteGlossaryAsync</summary> public async Task DeleteGlossaryAsync() { // Snippet: DeleteGlossaryAsync(GlossaryName,CallSettings) // Additional: DeleteGlossaryAsync(GlossaryName,CancellationToken) // Create client TranslationServiceClient translationServiceClient = await TranslationServiceClient.CreateAsync(); // Initialize request argument(s) GlossaryName name = new GlossaryName("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); // Make the request Operation <DeleteGlossaryResponse, DeleteGlossaryMetadata> response = await translationServiceClient.DeleteGlossaryAsync(name); // Poll until the returned long-running operation is complete Operation <DeleteGlossaryResponse, DeleteGlossaryMetadata> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result DeleteGlossaryResponse result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <DeleteGlossaryResponse, DeleteGlossaryMetadata> retrievedResponse = await translationServiceClient.PollOnceDeleteGlossaryAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result DeleteGlossaryResponse retrievedResult = retrievedResponse.Result; } // End snippet }