Skip to main content

Delete driver by ID

DELETE 

/truckers/drivers/:id

Permanently delete a specific driver from the system.

Requirements:

  • Administrator role
  • Valid JWT authentication

Parameters:

  • id (path): Unique ID of the driver to be deleted

Considerations:

  • The deletion is irreversible
  • The following will also be deleted:
    • Vehicles associated with the driver
    • Linked documents
    • Operation history

Recommendations:

  1. First change the status to inactive
  2. Verify the driver has no pending operations
  3. Notify the driver if necessary

Request Example:

DELETE /507f1f77bcf86cd799439011

Request

Responses

Successful response with no content.
It is used for operations that do not require returning data,
such as successful deletions or updates.