You may find many references to write into taxonomy columns (aka. managed metadata columns) but the clearing those is pretty much tricky.
Following code sample guide you through how you can clear the taxonomy column value in you custom client side application (JSOM) based on SharePoint.
[code type="javascript"]
//USAGE:
//clearWithValue =true => for clear saved taxanomy column values
//clearWithValue =false => wite into taxanomy column
function saveValuesToManagedMetadataColumns(listName, fieldId, taxanomyLabel, siteUrl, clearWithValue) {
//You many need seperate function to resolve GUID for the lable.
//Its based on your requirement and for now its hardcoded
var taxonmyGuid = "9f75f519-51f8-4723-9182-7e8225a54031";
//Loading context and list
var context = new SP.ClientContext(siteUrl);
var list = context.get_web().get_lists().getByTitle(listName);
//Getting item to update
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml("<View&…
Following code sample guide you through how you can clear the taxonomy column value in you custom client side application (JSOM) based on SharePoint.
[code type="javascript"]
//USAGE:
//clearWithValue =true => for clear saved taxanomy column values
//clearWithValue =false => wite into taxanomy column
function saveValuesToManagedMetadataColumns(listName, fieldId, taxanomyLabel, siteUrl, clearWithValue) {
//You many need seperate function to resolve GUID for the lable.
//Its based on your requirement and for now its hardcoded
var taxonmyGuid = "9f75f519-51f8-4723-9182-7e8225a54031";
//Loading context and list
var context = new SP.ClientContext(siteUrl);
var list = context.get_web().get_lists().getByTitle(listName);
//Getting item to update
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml("<View&…