Method: providers.vehicles.delete

Deletes a Vehicle from the Fleet Engine.

Returns FAILED_PRECONDITION if the Vehicle has active Trips. assigned to it.

HTTP request

DELETE https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Must be in the format providers/{provider}/vehicles/{vehicle}. The {provider} must be the Project ID (for example, sample-cloud-project) of the Google Cloud Project of which the service account making this call is a member.

Query parameters

Parameters
header

object (RequestHeader)

Optional. The standard Fleet Engine request header.

Request body

The request body must be empty.

Response body

If successful, the response body is an empty JSON object.