Need To remove Tags from Url's also

Adding Tag from below code

#foreach ($tag in $tags)

#set ($tagName = $tag.Name)
#if ($showTagCounts)
#set ($tagName = "${tagName} ($tag.ContentCount)")
#end
#set ($tagUrl = false)
#if($linkTo != 'Nothing')
#set ($tagsToLink = false)
#set ($tagsToLink = $core_v2_tags.Current)
#if ($tagsToLink)
#set ($addIndex = $tagsToLink.Add($tag.Name))
#else
#set ($tagsToLink = $core_v2_utility.MakeList($tag.Name))
#end
#if($linkTo == 'SiteTagBrowser')
#set($tagUrl = $core_v2_urls.Tags($tagsToLink))
#else
$linkQuery.Remove('Tags')
$linkQuery.Add('Tags', $core_v2_utility.Join(',', $tagsToLink))

#set($tagUrl = $core_v2_urls.Tags($linkQuery))
#end
#end

##$linkQuery.Remove('Tags')
##set($tagUrl = $core_v2_urls.Tags($linkQuery))
#if ($tagUrl)

<a aria-label="Top Tags $tagName" href="$core_v2_encoding.HtmlAttributeEncode($tagUrl)" class="sbx-d-in-block dc-tag-list-item ${tag.CssClass}" rel="nofollow tag">$tagName</a>
#else
$tagName
#end

Printing tag from below code

#set($isGroupMember = $core_v2_group.IsGroupMember($core_v2_group.Current.Id, $core_v2_user.Accessing.Id))
#set($keywords = $msd_v1_keywords.GetKeywordSubscriptions($core_v2_user.Accessing.Id))
#set($threadId = $core_v2_forumThread.Current.Id)

#if(!$core_v2_user.IsRegistered($core_v2_user.Accessing.Id) )
$core_v2_widget.Hide()
#end
#if(!$isGroupMember)
$core_v2_widget.Hide()
#end


#set($keywordSubscriptionContainer = $core_v2_widget.UniqueId("keywordSubscriptionContainer"))
#set($keywordNotificationContainer = $core_v2_widget.UniqueId("keywordNotificationContainer"))
#set ($tags = false)

#if($core_v2_forumUrls.IsForumUrl)
#set($tags = $msd_v1_forumThread.GetThreadAndReplyTags($threadId))
#elseif($core_v2_blogUrls.IsBlogUrl)
#set($tags = $core_v2_blogPost.Current.Tags)
#end

#if(!$tags || $tags.Count == 0)
#set($tags = $core_v2_tags.Current)
#end

## hide widget if there are no tags.
#if (!$tags || $tags.Count == 0)
$core_v2_widget.Hide()
#end
## <div class="custom-container">

#set($keywordremove = $core_v2_widget.UniqueId("remove"))
<div class="tag-subscribe sbx-mb-20">
<h3 class="sbx-mb-10 sbx-rich-black sbx-font-400">$core_v2_language.GetResource("SelectedTags") </h3>
<div id="$keywordNotificationContainer" class="keywordNotificationContainer meta-large"><span></span></div>
<div id="$keywordSubscriptionContainer" class="subscribe-tag"></div>
<div class="meta"><a href="/user/settings.aspx?tabIndex=4">$core_v2_language.GetResource("ManageSubscriptions")</a></div>


</div>

JS(added one link which is marked in yellow. I wan to remove that tag on click of that link)

var keywordTemplate = "<div class='subscription_container'><h4>{0}</h4><span class=\"meta-large\"><a href='javascript:void(0);' onClick=\"toggleSubscription(this,'{0}');\" keywordId='{3}' subscriptionStatus='{2}'>{1}</a></span> <a href='#' class='remove-url'>Remove</a></div>";
#set($loopCount = 0)
var tags = [#foreach($tag in $tags) "$tag" #if($tags.Count > $loopCount+1), #set($loopCount = $loopCount+1) #end #end];

#set($keywordCount = 0)
var keywords = [#foreach($word in $keywords) {"id":$word.KeywordSubscriptionId,"keyword":"$core_v2_encoding.JavascriptEncode($word.Keyword)","status":#if($word.IsUserSubscribed)1 #else 0 #end}#if($keywords.Count > $keywordCount+1), #set($keywordCount = $keywordCount+1) #end #end]

jQuery.each(tags, function(index,obj){

var keywordAnchor = keywordTemplate;
keywordAnchor = keywordAnchor.replace(/\{0\}/g, obj)
var subscribed = 0;
var keywordId = 0;


jQuery.each(keywords, function(kindex,kobj)
{
if(kobj.keyword.toLowerCase() == obj.toLowerCase())
{
subscribed = 1;
}
keywordId = kobj.id;
});

keywordAnchor = keywordAnchor.replace(/\{2\}/g, subscribed)
if(subscribed == 0) {
keywordAnchor = keywordAnchor.replace(/\{1\}/g, "Subscribe");
keywordAnchor = keywordAnchor.replace(/\{3\}/g, "0");
}
else {
keywordAnchor = keywordAnchor.replace(/\{1\}/g, "Unsubscribe");
keywordAnchor = keywordAnchor.replace(/\{3\}/g, keywordId);
}

jQuery("#$keywordSubscriptionContainer").prepend(keywordAnchor);

});