I'm trying to remember how to delete all files, subdirectories, and subdirectory contents from a specific directory from a command prompt. Steps on how to remove a full directory of files in Linux from the as "rmdir: ' dir ': Directory not empty" and be unable to delete the directory. Do you want to delete a directory /folder from Windows command prompt? This post explains how to use the command rmdir to delete folders. January 23, at November 28, at February 3, at 5: Specifies the location and name of the directory that you want to delete. Sign up or log in to customize your list. The delTree should be modified to check for links. January 29, at 5: Colin Pickard 5, 3 22 Here is what I did: Deleting Directories in Linux Ubuntu Linux: No such file or directory. Trae 2 March 19, at 3: Code or program output. Netsh commands for RAS. If you attempt to do so, the following message appears:.