delete-tree ( path -- )
Factor handbook » Input and output » Directory manipulation » Directory hierarchy manipulation

Next:copy-tree ( from to -- )


Vocabulary
io.directories

Inputs
patha pathname string


Outputs
None

Word description
Deletes a file or directory, recursing into subdirectories.

Errors
Throws an error if the deletion fails.

Warning
Misuse of this word can lead to catastrophic data loss.


Definition