Remove drivers
DELETE/truckers/drivers/
Remove one or multiple drivers from the system.
Requirements:
- Administrator role
- Valid JWT authentication
Usage methods:
-
Delete multiple drivers:
- Send array of IDs in the body (JSON)
\{
ids: [507f1f77bcf86cd799439011, 507f1f77bcf86cd799439012]
\} -
Delete all inactive drivers:
- Send parameter
status=inactivein query string - Example:
DELETE /?status=inactive
- Send parameter
Notes:
- Deletion is permanent
- Associated records will also be deleted (vehicles, documents)
- It is recommended to first change the status to inactive
Responses
- 200
- 401
- 403
- 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)
Server error