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
associatedfield)
Request
Responses
- 200
- 401
- 404
Condutor eliminado corretamente
Response Headers
Não autorizado. Token JWT inválido ou não fornecido.
Response Headers
Não encontrado. Possíveis causas:
- Transportadora não existe
- Motorista não existe ou não pertence à transportadora especificada