Disabling Stream in Sitecore - A Technical Deep Dive

 
In Sitecore, the Stream feature is part of Sitecore’s broader push toward event-driven architecture, integrations, and real-time processing. It is typically used for:

  • Event streaming (analytics, tracking data, etc.)
  • Integration pipelines (e.g., xConnect, external services)
  • Background processing workloads

However, there are real-world scenarios where disabling the Stream functionality becomes necessary.

Some times we need to disable the Sitecore stream on our local due to various reasons. Here this blogs provides step by steps process to disable from Sitecore instances.

1. Break the AI Connection

The most effective way to prevent Stream from functioning is to remove its ability to talk to the backend.

  • Connection Strings: Open your ConnectionStrings.config file and remove or comment out any entries related to Sitecore Stream or AI Client (specifically the client_id and client_secret strings).
  • Without these credentials, the Stream client cannot authenticate, rendering the feature non-functional even if the code is still active.

2. Disable Configuration Files Since deleting files can sometimes be reverted by deployment scripts, use a more robust "belt-and-suspenders" approach.

  • Rename to .disabled: Navigate to the App_Config\Sitecore\AiClient\ folder. Rename every .config file to .config.disabled. This ensures the Sitecore config loader skips them entirely.
  • Layer s.config: Double-check your Layers.config file. If there is a dedicated layer for AI or Stream, you can set that entire layer to mode="Off" to disable all associated configs at once.

3. Cleanup the Core Database (UI Elements) Disabling the backend doesn't always remove the visual buttons from the Sitecore interface. To hide them, switch to the Core database and perform the following:

  • Launchpad: Go to /sitecore/content/Applications/Launchpad/PageSettings/Buttons. Locate any Stream-specific buttons and either delete them or deny Read access for sitecore\Everyone.

  • Content Editor Ribbons: Check under /sitecore/content/Applications/Content Editor/Ribbons/ for AI or Stream-related strips or buttons.

  • SPEAK Applications: Look into /sitecore/client/Applications/ for any SPEAK-based Stream pages that might still be accessible via direct URL.

4. Restart the Instance Once you have modified the configs and updated the database permissions, perform an IIS Reset or recycle the App Pool to ensure all cached configurations are cleared. Now verify that all stream related changes are removed or not.

Summary Checklist

LayerAction TakenVerification
ConfigRenamed App_Config/Sitecore/AiClient/*.config to .disabledShowConfig.aspx shows no AiClient nodes.
ConnectionsRemoved Stream keys from ConnectionStrings.configLogs show no auth errors to sitecorecloud.io.
UI (Core DB)Deleted Launchpad/Ribbon items in Core DBLaunchpad is clean; Content Editor ribbon has no AI tab.
Once these three layers are handled, restart your IIS instance. Your logs should be clear of Stream connection errors, and your business users will no longer see the "ghost" icons of a disabled feature.

Happy Sitecoring 😀😀

Comments