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