def delete_with_http_info(group_name, service_name, project_name, task_name, delete_running_tasks:nil, custom_headers:nil)
      delete_async(group_name, service_name, project_name, task_name, delete_running_tasks:delete_running_tasks, custom_headers:custom_headers).value!
    end
def delete_with_http_info(group_name, service_name, project_name, task_name, delete_running_tasks:nil, custom_headers:nil)
      delete_async(group_name, service_name, project_name, task_name, delete_running_tasks:delete_running_tasks, custom_headers:custom_headers).value!
    end
Delete task

 The tasks resource is a nested, proxy-only resource representing work
 performed by a DMS instance. The DELETE method deletes a task, canceling it
 first if it's running.

 @param group_name [String] Name of the resource group
 @param service_name [String] Name of the service
 @param project_name [String] Name of the project
 @param task_name [String] Name of the Task
 @param delete_running_tasks [Boolean] Delete the resource even if it contains
 running tasks
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [MsRestAzure::AzureOperationResponse] HTTP response information.