I was playing around with stream notifications using EWS in Exchange. Accordingly, I have created some subscriptions, but I have I forgot to save the subscription id.
If I try to create a new subscription, I receive the following error message:
You have exceeded the available subscriptions for your account. Remove unnecessary subscriptions and try your request
The procedure to unsubscribe from stream notifications is described here: documentation Unfortunately, the request requires a subscription id which I do not have.
How can I unsubscribe existing stream notifications without the subscription id? Or how can I search for existing subscriptions?
My experience has been that eventually subscriptions die out, but I can't tell from your post what the time frame involved is. E.g. if you subscribe but then stop making OpenStreaminConnection on that sub, Exchange should realize after some time (the timeout interval perhaps?) that this is a dead subscription.
The other consideration is to look into using impersonation against the mailbox you're subscribing to. Again, not clear from your post whether this is just your own mailbox or multiple others.