static async Task DeleteSubscriptionAsync(TwitterContext twitterCtx) { ulong webhookID = GetWebhook(); try { AccountActivity accAct = await twitterCtx.DeleteAccountActivitySubscriptionAsync(webhookID); Console.WriteLine("Subscription deleted."); } catch (TwitterQueryException tqEx) // Twitter returns a 3XX when it can't delete, which throws { Console.WriteLine($"Unable to delete subscription: {tqEx.Message}"); } }