//--------------------------------------------------------------------------
public Element serviceSpecificExec(Element params, ServiceContext context) throws Exception
{
GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
ThesaurusManager manager = gc.getBean(ThesaurusManager.class);
// Get parameters
String name = Util.getParam(params, Params.REF);
// Load file
Thesaurus thesaurus = manager.getThesaurusByName(name);
File item = thesaurus.getFile();
// Remove old file from thesaurus manager
manager.remove(name);
// Remove file
if (item.exists()) {
IO.delete(item, true, Geonet.THESAURUS);