Delete Trip (Android)

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

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

Roam.deleteTrip("tripId", new RoamDeleteTripCallback() {
            @Override
            public void onSuccess(RoamDeleteTripResponse response) {
              //get delete trip details
            }

            @Override
            public void onError(Error error) {
              //get error details
            }
        });

You can access the delete trip response parameters below:

ParameterTypeDescription

response.getCode()

Integer

The success response code of the method.

response.getMessage()

String

The success response message of the method.

response.getDescription()

String

Error response description of the method.

response.getTrip().getTripId()

String

Unique identifier for the object.

response..getTrip().getIsDeleted()

boolean

Boolean value to determine if the trip has been deleted.

Last updated