Skip to main content

mklink cannot be used to delete symbolic links. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

If the link is a hard link to a directory:

C:\test>rmdir foo

or else, IF the link points to a file (as opposed to a dir)

C:\test>del foo

Source: http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK

mklink cannot be used to delete symbolic links. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

If the link is a hard link to a directory:

C:\test>rmdir foo

or else, IF the link points to a file (as opposed to a dir)

C:\test>del foo

Source: http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/

mklink cannot be used to delete symbolic links. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

If the link is a hard link to a directory:

C:\test>rmdir foo

or else, IF the link points to a file (as opposed to a dir)

C:\test>del foo

Source: Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK

added 27 characters in body
Source Link
Oliver Salzburg
  • 87.9k
  • 64
  • 266
  • 308

READ EDDYQs ANSWER BELOW, I CAN'T DELETE THIS ANSWER (ELSE I WOULD)

MKLINK mklink cannot be used to delete symbolic links. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

If the link is a hard link to a directory: If the link is a hard link to a directory:

C:\test>rmdir foo

OR ELSE, IF the link points to a FILE (as opposed to a dir) or else, IF the link points to a file (as opposed to a dir)

C:\test>del foo

sourceSource: http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/

READ EDDYQs ANSWER BELOW, I CAN'T DELETE THIS ANSWER (ELSE I WOULD)

MKLINK cannot be used to delete symbolic links. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

If the link is a hard link to a directory:

C:\test>rmdir foo

OR ELSE, IF the link points to a FILE (as opposed to a dir)

C:\test>del foo

source: http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/

mklink cannot be used to delete symbolic links. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

If the link is a hard link to a directory:

C:\test>rmdir foo

or else, IF the link points to a file (as opposed to a dir)

C:\test>del foo

Source: http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/

It is dangerous if the first command a reader sees is "del foo", because careless use can lead to disaster. It is safer to present the rmdir option first, and mention del only after that.
Source Link

READ EDDYQs ANSWER BELOW, I CAN'T DELETE THIS ANSWER (ELSE I WOULD)

MKLINK cannot be used to delete symbolic links. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

C:\test>del fooIf the link is a hard link to a directory:

C:\test>rmdir foo

OR ELSE, IF the link points to a FILE (as opposed to a dir)

C:\test>del foo

source: http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/

READ EDDYQs ANSWER BELOW, I CAN'T DELETE THIS ANSWER (ELSE I WOULD)

MKLINK cannot be used to delete symbolic links. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

C:\test>del foo

source: http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/

READ EDDYQs ANSWER BELOW, I CAN'T DELETE THIS ANSWER (ELSE I WOULD)

MKLINK cannot be used to delete symbolic links. To remove a symbolic link, simply delete them as if you’re removing a normal file. For example, to delete the foo symbolic link created above, enter the following command:

If the link is a hard link to a directory:

C:\test>rmdir foo

OR ELSE, IF the link points to a FILE (as opposed to a dir)

C:\test>del foo

source: http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/

answer didn't warn people that 'del' will delete the link and the atual file.
Source Link
Daisetsu
  • 6k
  • 4
  • 36
  • 44
Loading
Source Link
Daisetsu
  • 6k
  • 4
  • 36
  • 44
Loading