folder delete

This command deletes a directory. It will recursively delete all contained files and folders. The command fails if the directory cannot be deleted. However, if the directory does not exist, the command succeeds.

Version Platforms
8.0.584.0 AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows
8.1.535.0 Debian, Ubuntu


folder delete <path>


Delete the directory C:\test.

folder delete "C:\test"

Remove the folder /temp/ハロー in UTF-8 encoding.

binary name folder delete {("/temp/" as binary_string as hexadecimal) & "e3838fe383ade383bc"}


It’s good practice to enclose file paths in quotes to preserve spaces. Without quotes, the file system will not be able to access files with spaces in the path or file name.