remove

fun remove(dataSource: DataSource, destroy: Boolean? = definedExternally): Boolean(source)

Removes a data source from this collection, if present.

Return

true if the data source was in the collection and was removed, false if the data source was not in the collection.

Parameters

dataSource

The data source to remove.

destroy

Whether to destroy the data source in addition to removing it. Default value - false

See also