> ## 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)`

Paid plans only

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

The change is applied asynchronously: this method returns once the request is sent. Watch the [`live-streaming-warning`](https://docs.daily.co/reference/react-native/events/error-events#live-streaming-warning) event to learn whether the media server rejected the change; its `details.endpoints` names the destinations concerned. The REST counterpart is [`POST /rooms/:name/live-streaming/remove-endpoints`](https://docs.daily.co/reference/rest-api/rooms/live-streaming/remove-endpoints).

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

## Parameters

**endpoints** `DailyStreamingEndpoint[]` *required*

Array of endpoints to remove. Each entry must include the `endpoint` URL.

**instanceId** `string`

Optional. The live streaming instance to target when multiple streams are active.

## 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

> [card] Methods
>
> * [addLiveStreamingEndpoints()](https://docs.daily.co/reference/react-native/instance-methods/add-live-streaming-endpoints.md)
> * [startLiveStreaming()](https://docs.daily.co/reference/react-native/instance-methods/start-live-streaming.md)
> * [updateLiveStreaming()](https://docs.daily.co/reference/react-native/instance-methods/update-live-streaming.md)
> * [stopLiveStreaming()](https://docs.daily.co/reference/react-native/instance-methods/stop-live-streaming.md)

> [card] Events
>
> * [live-streaming-started](https://docs.daily.co/reference/react-native/events/live-streaming-events.md#live-streaming-started)
> * [live-streaming-stopped](https://docs.daily.co/reference/react-native/events/live-streaming-events.md#live-streaming-stopped)
> * [nonfatal-error](https://docs.daily.co/reference/react-native/events/error-events.md#nonfatal-error)

> [card] Guides
>
> * [Live streaming](https://docs.daily.co/docs/daily-js/features/live-streaming.md)
> * [Live streaming overview](https://docs.daily.co/docs/guides/features/live-streaming)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.