Skip to main content

Remove drivers

DELETE 

/truckers/drivers/

Remove one or multiple drivers from the system.

Requirements:

  • Administrator role
  • Valid JWT authentication

Usage methods:

  1. Delete multiple drivers:

    • Send array of IDs in the body (JSON)
    \{
    ids: [507f1f77bcf86cd799439011, 507f1f77bcf86cd799439012]
    \}
  2. Delete all inactive drivers:

    • Send parameter status=inactive in query string
    • Example: DELETE /?status=inactive

Notes:

  • Deletion is permanent
  • Associated records will also be deleted (vehicles, documents)
  • It is recommended to first change the status to inactive

Responses

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