Event Deletion

Pre-requisite: The user has to be signed in to perform the following operations.


Delete Event (Deprecated)

This method is deprecated. Please use Delete Events instead.

To delete a single event, The following method can be used:

  • event (required): The event object to be deleted.
InstaVision.eventServices.deleteEvent(
  event = event, // The event object to be deleted
  onSuccess = {
    // Event deleted successfully
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)

Delete Events

To delete one or more events, The following method can be used:

  • deleteEventsRequest (required): The request object containing the list of event ids to be deleted.
  • spaceId (required): The space id for which the events are to be deleted.
InstaVision.eventServices.deleteEvents(
  deleteEventsRequest = DeleteEventsRequest(eventIds = listOf(eventId)), // The event ids to be deleted
  spaceId = spaceId, // The space id for which the events are to be deleted
  onSuccess = {
    // Events deleted successfully
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)

Get User Deleted Events

To get the list of deleted events, The following method can be used:

  • spaceId (required): The space id for which the deleted events are to be fetched.
InstaVision.eventServices.getUserDeletedEvents(
  spaceId = spaceId, // The space id for which the deleted events are to be fetched
  onSuccess = { deletedEvents ->
    // The list of deleted events
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)

This site uses Just the Docs, a documentation theme for Jekyll.