Pular para o conteúdo principal

Remove a driver

DELETE 

/company/my_carriers/driver/:carrierId/:driverId

Remove permanently a driver from the system. Requires authentication via JWT.

Use cases:

  • Remove drivers who no longer work with the carrier
  • Clean up duplicate or incorrect records

Notes:

  • This action is irreversible
  • The carrier and driver must exist previously
  • Only drivers associated with the specified carrier can be removed
  • The endpoint validates that the driver belongs to the carrier (using the associated field)

Request

Responses

Condutor eliminado corretamente

Response Headers