Tried with rmdir /s from command prompt
I created a directory c:\abc1 with a text file in it.
And I created a directory c:\test1 with a subdirectory c:\test1\blah
Within c:\test1\blah I tried creating links to c:\abc1 , a symbolic link or a junction link..
Then when I did rmdir /s on blah, I checked c:\abc1 and it's still there with its contents.
So rmdir /s from cmd prompt, tested in Windows 7, is safe.
C:\>dir c:\abc1
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of c:\abc1
28/12/2021 19:45 <DIR> .
28/12/2021 19:45 <DIR> ..
28/12/2021 19:45 6 a.txt
1 File(s) 6 bytes
2 Dir(s) 137,425,338,368 bytes free
C:\>cd test
The system cannot find the path specified.
C:\>cd test1
C:\test1>dir
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of C:\test1
28/12/2021 19:45 <DIR> .
28/12/2021 19:45 <DIR> ..
28/12/2021 19:46 <DIR> blah
0 File(s) 0 bytes
3 Dir(s) 137,425,338,368 bytes free
C:\test1>cd blah
C:\test1\blah>dir
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of C:\test1\blah
28/12/2021 19:46 <DIR> .
28/12/2021 19:46 <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 137,425,338,368 bytes free
C:\test1\blah>mklink /?
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
refers to.
C:\test1\blah>mklink /d c:\abc1
The syntax of the command is incorrect.
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
refers to.
C:\test1\blah>mklink /d qq c:\abc1
symbolic link created for qq <<===>> c:\abc1
C:\test1\blah>dir
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of C:\test1\blah
28/12/2021 19:47 <DIR> .
28/12/2021 19:47 <DIR> ..
28/12/2021 19:47 <SYMLINKD> qq [c:\abc1]
0 File(s) 0 bytes
3 Dir(s) 137,425,469,440 bytes free
C:\test1\blah>dir qq
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of C:\test1\blah\qq
28/12/2021 19:45 <DIR> .
28/12/2021 19:45 <DIR> ..
28/12/2021 19:45 6 a.txt
1 File(s) 6 bytes
2 Dir(s) 137,425,469,440 bytes free
C:\test1\blah>cd ..
C:\test1>rmdir /s blah
blah, Are you sure (Y/N)? y
C:\test1>dir c:\abc1
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of c:\abc1
28/12/2021 19:45 <DIR> .
28/12/2021 19:45 <DIR> ..
28/12/2021 19:45 6 a.txt
1 File(s) 6 bytes
2 Dir(s) 137,425,379,328 bytes free
C:\test1>cd blah
The system cannot find the path specified.
C:\test1>md blah
C:\test1>dir
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of C:\test1
28/12/2021 19:47 <DIR> .
28/12/2021 19:47 <DIR> ..
28/12/2021 19:47 <DIR> blah
0 File(s) 0 bytes
3 Dir(s) 137,424,666,624 bytes free
C:\test1>cd blah
C:\test1\blah>dir
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of C:\test1\blah
28/12/2021 19:47 <DIR> .
28/12/2021 19:47 <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 137,424,666,624 bytes free
C:\test1\blah>mklink /?
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
refers to.
C:\test1\blah>mklink /J ww c:\abc1
Junction created for ww <<===>> c:\abc1
C:\test1\blah>dir
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of C:\test1\blah
28/12/2021 19:48 <DIR> .
28/12/2021 19:48 <DIR> ..
28/12/2021 19:48 <JUNCTION> ww [c:\abc1]
0 File(s) 0 bytes
3 Dir(s) 137,424,715,776 bytes free
C:\test1\blah>dir ww
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of C:\test1\blah\ww
28/12/2021 19:45 <DIR> .
28/12/2021 19:45 <DIR> ..
28/12/2021 19:45 6 a.txt
1 File(s) 6 bytes
2 Dir(s) 137,424,715,776 bytes free
C:\test1\blah>cd ..
C:\test1>rmdir /s blah
blah, Are you sure (Y/N)? y
C:\test1>dir c:\abc1
Volume in drive C has no label.
Volume Serial Number is 4645-5DCE
Directory of c:\abc1
28/12/2021 19:45 <DIR> .
28/12/2021 19:45 <DIR> ..
28/12/2021 19:45 6 a.txt
1 File(s) 6 bytes
2 Dir(s) 137,424,740,352 bytes free
C:\test1>
Really you should be able to do the test yourself very easily.
One comment mentions that powershell rmdir is different.. I can't comment much re powershell, I don't use it that much. I see that powershell's rmdir does give different output e.g. rmdir says "cmdlet Remove-Item at command pipeline..." so seems to be very different to the cmd one, i'm not familiar with it.