Skip to main content
DELETE
Delete Vehicle Consumption
← Vehicles API
Deprecated. Use POST /v2/vehicle-consumptions/delete: many vehicle consumptions per request by id, idempotent, deleted asynchronously as an ingest job, with webhooks. To also move to the trash the uploaded files that no record uses after the delete (delete_source_files), use this endpoint: the v2 delete does not. This endpoint keeps working; its responses carry Deprecation and Link: </v2/vehicle-consumptions/delete>; rel="successor-version" headers. Its responses also carry Sunset: Fri, 30 Apr 2027 00:00:00 GMT: the endpoint is retired on April 30, 2027 (see the changelog).
Permanently delete a single vehicle consumption record. This action cannot be undone and will remove all associated emissions data from your organization’s totals.
Irreversible Action: Deleting a consumption record is permanent. All associated CO₂e impact data will be removed.

Request

Path Parameters

uuid
required
The UUID of the vehicle consumption record to deleteExample: 660e8400-e29b-41d4-a716-446655440000

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Query Parameters

boolean
default:"false"
Also move to the trash the files uploaded for these records that no record uses after the delete.

Response

Returns 204 No Content on successful deletion. No response body.

Example

Successful Response

No response body is returned for successful deletions.

Common Errors

401 Unauthorized

Cause: Missing or invalid API key
Solution: Verify your API key is valid and active. Get a new one in Company settings → API Keys.

404 Not Found

Cause: Vehicle consumption record not found in organization
Solution: Verify the consumption ID is correct and belongs to your organization. Use the List Vehicle Consumptions endpoint to retrieve valid IDs.

422 Validation Error

Cause: Malformed UUID in path parameter

Vehicle Consumptions

List all consumption records for a vehicle

Delete Consumptions by File

Delete all consumptions from a CSV upload by file ID

Bulk Delete Consumptions

Delete multiple consumption records at once

Bulk Delete by Filters

Delete consumptions matching filter criteria