Delete Vehicle Consumptions by File
Delete Vehicle Consumptions by File
Delete all vehicle consumption records associated with a CSV upload file ID, across the entire holding
DELETE
Delete Vehicle Consumptions by File
Documentation Index
Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
Use this file to discover all available pages before exploring further.
Delete Vehicle Consumptions by File
Delete all vehicle consumption records that were created from a specific CSV bulk upload, identified by itsfile_id. This endpoint traverses the full holding hierarchy, removing matching records from the parent organization and all child organizations.
Holding-aware: When a CSV is uploaded to a parent organization, consumption records may be created across multiple child organizations. This endpoint finds and deletes all of them in a single call.
Request
Path Parameters
The UUID of the file whose associated consumption records should be deleted. This is the
file_id returned when the bulk CSV upload was processed.Example: a8315ef3-dd50-43f8-b7ce-d839e68d51faHeaders
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUID. The deletion will include consumption records from this organization and all child organizations in the holding.Example:
a8315ef3-dd50-43f8-b7ce-d839e68d51faResponse
Returns204 No Content on success, even if no records matched the given file_id. No response body.
Example
Successful Response
file_id, the response is still 204.
Common Errors
401 Unauthorized
Cause: Missing or invalid API key422 Validation Error
Cause: Malformed UUID in path parameterUse Cases
Undo a Bulk CSV Upload
When a user uploads a CSV file and realizes it contained errors, use this endpoint to remove all the records it created before re-uploading the corrected file:Related Endpoints
Vehicle Consumptions
List all consumption records for a vehicle
Delete Vehicle Consumption
Delete a single consumption record by ID
Bulk Delete Consumptions
Delete multiple consumption records by their IDs
Bulk Delete by Filters
Delete consumptions matching filter criteria

