Send a DELETE
request to the delete
endpoint to delete a selected route
from your project and stop data collection.
https://roads.googleapis.com/selection/v1/projects/PROJECT_NUMBER/selectedRoutes/SELECTED_ROUTE_ID
The request must include the name
of the SelectedRoute
to delete
and the project number.
The following code sample shows the structure of a DELETE
request to the
delete
endpoint:
curl -X DELETE \ -H 'X-Goog-User-Project: PROJECT_NUMBER' \ -H "Authorization: Bearer ACCESS_TOKEN" \ "https://roads.googleapis.com/selection/v1/projects/PROJECT_NUMBER/selectedRoutes/SELECTED_ROUTE_ID"
On success, the API returns an empty JSON object.