To for example delete a mapped drive T: you just need to do a
code:
use T: /delete /persistent

However, the question was more related to how to delete an shortcut on the user's desktop.
_________________________
There are two types of vessels, submarines and targets.