API: Delete Bus

Request

Soft delete a specific bus by ID:

DELETE /buses/{id}

Sample Response:


{
  "status": "success",
  "message": "Bus deleted successfully"
}
                

Notes:

  • The bus ID is required in the URL to specify which bus to delete.
  • If the bus does not exist, the API will return an error response.