windows - Using wildcards with the rmdir or rd command - Super User
Deleting folders using wildcards The rmdir / rd command alone doesn't support wildcard characters (that is, * and ?). You can workaround this limitation by wrapping it in a for loop. Example usage for /d %G in ("X:\A*") do rd /s /q "%~G" Note As you'r...