delete
Deletes a file or directory denoted by the path. If the item is a directory, it will be deleted recursively with all its contents. The operation is performed with Dispatchers.IO context.
Parameters
parent
The path of the item to delete.
Throws
or its inheritor if the file or directory doesn't exist or can't be deleted for any other reason.