MCPcopy Index your code
hub / github.com/Dispatcharr/Dispatcharr / deleteChannel

Method deleteChannel

frontend/src/api.js:628–639  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

626 }
627
628 static async deleteChannel(id) {
629 try {
630 await request(`${host}/api/channels/channels/${id}/`, {
631 method: 'DELETE',
632 });
633
634 useChannelsStore.getState().removeChannels([id]);
635 await API.requeryStreams();
636 } catch (e) {
637 errorNotification('Failed to delete channel', e);
638 }
639 }
640
641 // @TODO: the bulk delete endpoint is currently broken
642 static async deleteChannels(channel_ids) {

Callers 1

executeDeleteChannelFunction · 0.80

Calls 3

requestFunction · 0.85
errorNotificationFunction · 0.85
requeryStreamsMethod · 0.80

Tested by

no test coverage detected