Delete carrier group
DELETE/truckers/trucker-group/:code
Permanently delete a carrier group.
Functionality:
- Only the group creator can delete it
- Deletes all group associations (members and pending requests)
- This operation cannot be undone
Authentication required: JWT from the creator carrier company
Usage example:
DELETE /truckers/trucker-group/ABC123
Request
Responses
- 200
- 401
- 500
Successful response with no content.
It is used for operations that do not require returning data,
such as successful deletions or updates.
Unauthorized or not allowed.
Possible causes:
- Invalid or expired JWT token
- The user is not the creator of the group
- No group exists with the provided code
Internal Server Error.
Possible causes:
- Database connection issues
- Error processing the request