unlink

Removes a file on path. If it is a directory, its contents are removed as well. Returns true if file is deleted successfully, otherwise false.

common
fun unlink(path: String): Boolean
fun unlink(path: String): Boolean
fun unlink(pathComponent: PathComponent): Boolean
fun unlink(path: String): Boolean
fun unlink(pathComponent: PathComponent): Boolean

Removes a file on pathComponent. If it is a directory, its contents are removed as well. Returns true if file is deleted successfully, otherwise false.

common
fun unlink(pathComponent: PathComponent): Boolean