how to remove the target of the symbol link in a shell script

I have a target directory, there are some files and directories in "target_dir".

I have a symbol link: my_link -> <target_dir>

The target directory name is NOT known to the script (because it is varying), while the link name is always fixed.

In a shell script, how to remove both the symbol link and the target directory (including the target directory itself and its content) ?

Thanks.

cd mylink && rm -rf *
unlink /<mylink_absolute_path>/mylink
tgt=$PWD
cd .. && rmdir $tgt

?
Maybe there are some better solutions, i haven't tried it so far.
Test it before implementing it in a script.