Also, is there a way to use this function in javascript?
Through JavaScript it would be
$cgmz.getRecipe("name").unlearn();
Thanks again