I do not see the question in your thread, but maybe you want to use
RD "directory" [/s]