delete Method

Delete an EventSubscription.

delete(requestContext: AuthorizedClientRequestContext, iModelId: string, eventSubscriptionId: string): Promise<void>

throws IModelHubError with IModelHubStatus.EventSubscriptionDoesNotExist if EventSubscription does not exist with the specified subscription.wsgId.

throws Common iModelHub errors

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context
iModelId string Id of the iModel. See HubIModel.
eventSubscriptionId string Id of the EventSubscription.

Returns - Promise<void>

Resolves if the EventSubscription has been successfully deleted.

Defined in

Last Updated: 12 June, 2024