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:
- First change the status to inactive
- Verify the driver has no pending operations
- Notify the driver if necessary
Request Example:
DELETE /507f1f77bcf86cd799439011
Request
Responses
- 200
- 401
- 403
- 404
- 500
Successful response with no content.
It is used for operations that do not require returning data,
such as successful deletions or updates.
Unauthorized
Forbidden (admin required)
Driver not found
Server error