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