/// <summary>
 /// Deletes a data source instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.OperationalInsights.IDataSourceOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data source.
 /// </param>
 /// <param name='workspaceName'>
 /// Required. The name of the workspace that contains the data source.
 /// </param>
 /// <param name='datasourceName'>
 /// Required. Name of the data source.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IDataSourceOperations operations, string resourceGroupName, string workspaceName, string datasourceName)
 {
     return(operations.DeleteAsync(resourceGroupName, workspaceName, datasourceName, CancellationToken.None));
 }
 /// <summary>
 /// Deletes an Azure Search datasource.  (see
 /// https://msdn.microsoft.com/library/azure/dn946881.aspx for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Search.IDataSourceOperations.
 /// </param>
 /// <param name='dataSourceName'>
 /// Required. The name of the datasource to delete.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IDataSourceOperations operations, string dataSourceName)
 {
     return(operations.DeleteAsync(dataSourceName, CancellationToken.None));
 }