--- id: removechannel title: 'removeChannel()' slug: /removechannel custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml --- import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem' Unsubscribes and removes Realtime channel from Realtime client. ```js supabase.removeChannel(myChannel) ``` ## Parameters ## Notes - Removing a channel is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. ## Examples ### Remove a channel ```js supabase.removeChannel(myChannel) ```