kotlin-stdlib / kotlin.dom / clear clear JS 1.1 @DeprecatedSinceKotlin ( "1.4" , "1.6" ) fun Node . clear ( ) (source) Deprecated: This API is moved to another package, use 'kotlinx.dom.clear' instead. Removes all the children from this node.