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

ExecuteDelete() public method

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

            if (response == HttpStatusCode.NoContent)
            {
                WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.DataSourceNotFound, Name, WorkspaceName));
            }
        }
    }
RemoveAzureOperationalInsightsDataSourceCommand