rmdir

Remove a directory and its contents. In PowerShell, this command is an alias of Remove-Item. This documentation is based on the Command Prompt (cmd) version of rmdir. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/rmdir.

tldr remove-item

rmdir path\to\directory

rmdir path\to\directory /s

rmdir path\to\directory /s /q