The sticky thread https://qbforums.shiki.hu/index.php/topic,1608.0.html
uses the del command, which is the command to delete files.
The command needed is RD or RMDIR to remove (delete) a directory. If the directory is not empty, use RD/S or RMDIR/S to remove a directory tree.