Pular para o conteúdo principal

Delete vehicle by ID

DELETE 

/truckers/vehicles/:id

Remove permanently a specific vehicle from the fleet, identified by its unique ID.

Parameters:

  • id (required): Unique ID of the vehicle to be removed (MongoDB ObjectId)

Use cases:

  • Decommission a specific vehicle that is no longer in service
  • Remove duplicate or erroneous records
  • Clean the fleet of obsolete vehicles

Notes:

  • The removal is permanent and cannot be undone
  • Associated images from S3 will also be removed
  • Requires valid JWT authentication

Request

Responses

Veículo removido com sucesso

Response Headers