API Reference > imodeljs-clients > iModelHubClient > EventSubscriptionHandler > delete delete Method Delete an EventSubscription. delete(requestContext: AuthorizedClientRequestContext, iModelId: GuidString, 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 GuidString 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 core/clients/src/imodelhub/Events.ts Line 343 Last Updated: 13 June, 2024