how to remove soft link

hi

i have create a soft link using below command.

ln -s <filename> <dirmane>

where file name i use is t1 and dir name was t2.
i deleted the dir t2 using command

rm -rf 

to remove the soft link .

however again i create a file a using the name t2 and when i just try to link t1 to t2

using command ln -s t1 t2

it is showing

file exists

does it means that previous link is still there ?

thx
Vaibhav

Most likely.

To remove the sym. link, just use rm <whatever you called it> , as you would for a regular file.

If the link is already there, you can use ln -sf to force the new one to overwrite it.