Delete Trip (iOS)

Explore how to delete a trip on iOS with Trips v2.

You can delete the trip irrespective of any trip state. To delete the trip, you need to use the tripID with the Roam.deleteTrip("tripId") method.

Roam.deleteTrip("tripId") { response, error in
    // Access delete trip response
}

You can access the delete trip response parameters below:

Parameter
Type
Description

response?.code

number

The success response code of the method.

response?.message

string

The success response message of the method.

response?.errorDescription

string

Error response description of the method.

response?.tripId

string

Unique identifier for trip objects.

response?.isDeleted

boolean

Boolean value to determine if the trip has been deleted.

Last updated