Delete the delivery legs that have been created with the given tracking identifier.
This method is used to remove delivery legs no longer needed in a parcel journey.
This happens when the tracking identifier in the delivery leg will never be used for tracking a parcel, which means that no tracking events will ever be received for the given tracking identifier.
All delivery legs for the specified tracking identifier have been deleted
Bad request.
The request failed validation due to missing required information in the parameters or the body of the request.
Error code: PS-0400.
Unauthorized.
The request did not provide the credentials required to authorize access to the API.
Error code: PS-0401.
Forbidden.
The API user is not authorized to proceed with the processing of the request.
Error code: PS-0403.
Internal Server Error.
The processing of the request failed due to an internal problem. The request needs to be retried.
Error code: PS-0500.
{- "message": "Deleted 2 delivery legs"
}