> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# removeLiveStreamingEndpoints()

> Removes one or more RTMP endpoints from an active live stream.

`removeLiveStreamingEndpoints(options)`

<Badge color="blue">Paid plans only</Badge>

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

Removes one or more RTMP endpoints from an active live stream. Only works on streams started with the `endpoints` parameter in [`startLiveStreaming()`](/reference/daily-js/instance-methods/start-live-streaming) — not on streams started with `rtmpUrl`.

<Warning>
  Do not use this method to remove all endpoints. To stop streaming entirely, call [`stopLiveStreaming()`](/reference/daily-js/instance-methods/stop-live-streaming). Attempting to remove all endpoints with this method will fail and emit a [`nonfatal-error`](/reference/daily-js/events/error-events#nonfatal-error) with type `'live-streaming-warning'`.
</Warning>

## Parameters

<ParamField body="endpoints" type="DailyStreamingEndpoint[]" required>
  Array of endpoints to remove. Each entry must include the `endpoint` URL.
</ParamField>

<ParamField body="instanceId" type="string">
  Optional. The live streaming instance to target when multiple streams are active.
</ParamField>

## Return value

`void`

## Example

```javascript theme={null}
await call.removeLiveStreamingEndpoints({
  endpoints: [
    { endpoint: 'rtmp://example.com/live/stream2' },
    { endpoint: 'rtmp://example.com/live/stream3' },
  ],
});
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [addLiveStreamingEndpoints()](/reference/daily-js/instance-methods/add-live-streaming-endpoints)
    * [startLiveStreaming()](/reference/daily-js/instance-methods/start-live-streaming)
    * [updateLiveStreaming()](/reference/daily-js/instance-methods/update-live-streaming)
    * [stopLiveStreaming()](/reference/daily-js/instance-methods/stop-live-streaming)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [live-streaming-started](/reference/daily-js/events/live-streaming-events#live-streaming-started)
    * [live-streaming-stopped](/reference/daily-js/events/live-streaming-events#live-streaming-stopped)
    * [nonfatal-error](/reference/daily-js/events/error-events#nonfatal-error)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Live streaming](/docs/daily-js/features/live-streaming)
    * [Live streaming overview](/docs/guides/features/live-streaming)
  </Card>
</CardGroup>
