Method: providers.tasks.delete
Stay organized with collections
Save and categorize content based on your preferences.
Deletes a single Task.
Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a DeliveryVehicle.
HTTP request
DELETE https://fleetengine.googleapis.com/v1/{name=providers/*/tasks/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. Must be in the format providers/{provider}/tasks/{task} . The provider must be the Google Cloud Project ID. For example, sample-cloud-project .
|
Query parameters
Parameters |
header |
object (DeliveryRequestHeader )
Optional. The standard Delivery API request header.
|
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[],[],null,["# Method: providers.tasks.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n\nDeletes a single Task.\n\nReturns FAILED_PRECONDITION if the Task is OPEN and assigned to a DeliveryVehicle.\n\n### HTTP request\n\n`DELETE https://fleetengine.googleapis.com/v1/{name=providers/*/tasks/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Must be in the format `providers/{provider}/tasks/{task}`. The `provider` must be the Google Cloud Project ID. For example, `sample-cloud-project`. |\n\n### Query parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `header` | `object (`[DeliveryRequestHeader](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/DeliveryRequestHeader)`)` Optional. The standard Delivery API request header. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object."]]