/// <summary>
 /// Delete service task
 /// </summary>
 /// <remarks>
 /// The service tasks resource is a nested, proxy-only resource representing
 /// work performed by a DMS instance. The DELETE method deletes a service task,
 /// canceling it first if it's running.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupName'>
 /// Name of the resource group
 /// </param>
 /// <param name='serviceName'>
 /// Name of the service
 /// </param>
 /// <param name='taskName'>
 /// Name of the Task
 /// </param>
 /// <param name='deleteRunningTasks'>
 /// Delete the resource even if it contains running tasks
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IServiceTasksOperations operations, string groupName, string serviceName, string taskName, bool?deleteRunningTasks = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(groupName, serviceName, taskName, deleteRunningTasks, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }