kotlin-stdlib / kotlin.collections / HashMap / clear clear Common 1.0 fun clear()(source) JS 1.1 open fun clear()(source) Removes all elements from this map.