/// <summary> /// Deletes the log profile. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Insights.ILogProfilesOperations. /// </param> /// <param name='name'> /// Required. The name of the log profile. /// </param> /// <returns> /// Generic empty response. We only pass it to ensure json error /// handling /// </returns> public static Task <EmptyResponse> DeleteAsync(this ILogProfilesOperations operations, string name) { return(operations.DeleteAsync(name, CancellationToken.None)); }
/// <summary> /// Deletes the log profile. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='logProfileName'> /// The name of the log profile. /// </param> public static void Delete(this ILogProfilesOperations operations, string logProfileName) { operations.DeleteAsync(logProfileName).GetAwaiter().GetResult(); }