Skip to main content
DELETE
/
v1
/
fleet
/
dispatch
/
routes
/
{route_id_or_external_id}
Delete a route
curl --request DELETE \
  --url https://api.samsara.com/v1/fleet/dispatch/routes/{route_id_or_external_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "apply_to_future_routes": true
}
'
This response has no body data.

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

route_id_or_external_id
string
required

ID of the route. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: key:value. For example, payrollId:ABFS18600

Body

application/json
apply_to_future_routes
boolean

This is only for a recurring route. If set to true, delete all following runs of the route. If set to false, only delete the current route.

Example:

true

Response