Forrest logo
back to the rmdir tool

rmdir:tldr:f2d58

rmdir: Remove a directory and its contents recursively without prompting.
$ rmdir ${path\to\directory} /s /q
try on your machine

The command "rmdir" is used to remove (delete) a directory (folder) in the command prompt or terminal. Here is the breakdown of the command:

  • "${path\to\directory}" is a placeholder for the actual path to the directory you want to delete. You need to replace it with the appropriate path on your system. For example, if you want to delete a folder named "folder1" located in "C:\Users\Username\", the command would be "rmdir C:\Users\Username\folder1".

  • The "/s" flag is used to specify that the directory should be removed with all of its subdirectories and files. It means to delete the directory and everything inside it.

  • The "/q" flag is used to specify that the command should be run in "quiet mode" or without any prompts for confirmation. It means that you won't be asked to confirm the deletion and the command will execute directly.

So, when you run the command "rmdir ${path\to\directory} /s /q", it will delete the specified directory along with all of its contents without any confirmation prompts.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the rmdir tool