Microsoft.Azure.Commands.OperationalInsights.RemoveAzureOperationalInsightsSavedSearchCommand.ExecuteDelete C# (CSharp) Method

ExecuteDelete() public method

public ExecuteDelete ( ) : void
return void
        public void ExecuteDelete()
        {
            HttpStatusCode response = OperationalInsightsClient.DeleteSavedSearch(ResourceGroupName, WorkspaceName, SavedSearchId);

            if (response == HttpStatusCode.NoContent)
            {
                WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.SavedSearchNotFound, SavedSearchId, WorkspaceName));
            }
        }
RemoveAzureOperationalInsightsSavedSearchCommand