removeRoomsFromContainer

abstract suspend fun removeRoomsFromContainer(    containerId: String,     roomIds: List<String>): RainbowResult<Pair<Container, List<InvalidRoom>?>>

Removes multiple rooms identified by the specified list of room IDs from the container identified by the given container ID.

This method attempts to remove each room specified in the roomIds list from the container associated with the containerId. If all rooms are removed successfully, the method returns a RainbowResult indicating complete success. In the case of partial success (where some rooms are removed and others are not), the RainbowResult will indicate success, but the result will include a list of InvalidRoom objects detailing any rooms that could not be removed. If all removals fail, the RainbowResult will indicate failure.

Return

A RainbowResult containing a pair of the updated Container and a list of InvalidRoom for any rooms that could not be removed. The RainbowResult.isSuccess will be true for both complete and partial success; in the case of partial success, the list will contain the invalid rooms that were not removed.

Parameters

containerId

The unique identifier of the container from which the rooms will be removed.

roomIds

A list of unique IDs for the rooms to remove from the container.