some old version DOS has command called deltree. del dir_name/*.* will delete all file under dir_name, but dir still there. rmdir dir_name will remove the dir and its files.