kotlin-stdlib / kotlin.collections / MutableCollection / clear clear Common JVM JS Native 1.0 abstract fun clear() Removes all elements from this collection.