***********************************************************************
delTemplate()
This removes the specified template and its ValueSet (with all of its elements)
from the disk.
***********************************************************************
340274
public int delTemplate(String template) {
        int returnCode = NO_EXCEPTION;
        if (!this.disableTemplatesSupport) {
            if (delayOffload) {
                auxTemplateDependencyTable.removeDependency(template);
            }
            returnCode = delValueSet(TEMPLATE_ID_DATA, template);
        }
        return returnCode;
    }
1100330
private void deleteDynamicTemplates() throws IOException {
        File codegenDir = new File(getProjectDir() + "/codegen");
        if (codegenDir.exists()) {
            getOut().println("Deleting " + codegenDir);
            new Delete(codegenDir, true).run();
        }
        File assetsDir = new File(getProjectDir() + "/assets");
        if (assetsDir.exists()) {
            getOut().println("Deleting " + assetsDir);
            new Delete(assetsDir, true).run();
        }
        File configuratorDir = new File(getProjectDir() + "/configurator");
        if (configuratorDir.exists()) {
            getOut().println("Deleting " + configuratorDir);
            new Delete(configuratorDir, true).run();
        }
    }
110543
function(){
    var i;
    var args = slice(arguments);
    var length = args.length;

    if (length > 0){
      for(i=0; i<length; i++){
        delete this.templateCaches[args[i]];
      }
    } else {
      this.templateCaches = {};
    }
  }
732702
public void installationTemplate_templateName_DELETE(String templateName) throws IOException {
		String qPath = "/me/installationTemplate/{templateName}";
		StringBuilder sb = path(qPath, templateName);
		exec(qPath, "DELETE", sb.toString(), null);
	}
1331101
function(current_templates) {

		var i = 0,
			count = current_templates.length,
			guid;

		// from templates, which are prepared for removal, filter out those, which should be in DOM
		for (; i < count; i++) {

			delete this._remove_queue[current_templates[i].guid];

		}

		for (guid in this._remove_queue) {

			if (this._remove_queue[guid].isInDOM()) {

				this._remove_queue[guid].broadcastRemove();
				this._fire('removal_complete', this._remove_queue[guid]);

			}

		}

		this._current_templates = current_templates;
		this._remove_queue = {};

		return this._render();

	}
179928
public void deleteTemplate(ThymeLeafTemplateImplementation template) {
        // 1 - unregister the service
        try {
            ServiceRegistration reg = registrations.remove(template);
            if (reg != null) {
                reg.unregister();
            }
        } catch (Exception e) { //NOSONAR
            // May already have been unregistered during the shutdown sequence.
        }

        // 2 - as templates can have dependencies, and expressions kept in memory, we clear all caches.
        // Despite this may really impact performance, it should not happen too often on real systems.
        synchronized (this) {
            engine.getCacheManager().clearAllCaches();
        }
        OgnlRuntime.clearCache();
        // Unfortunately, the previous method do not clear the get and set method cache
        // (ognl.OgnlRuntime.cacheGetMethod and ognl.OgnlRuntime.cacheSetMethod)
        clearMethodCaches();
    }
511480
public function invalidateLoadedTemplates(): void
    {
        try {
            $me     = new \ReflectionClass($this);
            $parent = $me;

            while ($parent instanceof \ReflectionClass) {
                $me     = $parent;
                $parent = $me->getParentClass();
            }

            $templates = $me->getProperty('loadedTemplates');
            $templates->setAccessible(true);
            $templates->setValue($this, []);
        } catch (\ReflectionException $e) {
        }
    }
97550
public function deleteTemplateByCode($templatecode)
    {
        $template = $this->loadByTemplateByCode($templatecode);
        if ($template->getId()) {
            $template->delete();
        }
    }
588602
function (value) {
					//obj.template = value;
					obj.type = "object";
					obj.template=value;
					obj.group=value.group;
					delete obj.editor;// = "object";
				}
822359
function (tplSource, callback) {

            var tmpCfg = this._getReloadCfg();
            if (tplSource) {
                aria.templates.TemplateManager.$onOnce({
                    "unloadTemplate" : {
                        fn : function () {
                            var logicalPath = tmpCfg.classpath.replace(/\./g, "/") + ".tpl";
                            var cacheContent = ariaCoreCache.getItem("files", logicalPath, true);
                            cacheContent.status = 3; // status OK
                            cacheContent.value = tplSource;
                        },
                        scope : this
                    }
                });
            }

            tmpCfg.reload = true;
            tmpCfg.reloadByPassCache = true;

            var disposed = Aria.disposeTemplate(tmpCfg.div); // dispose the old template
            if (!disposed) {
                this.$logError("Could not reload template: " + tmpCfg.classpath);
            } else {
                this._callLoadTemplate(tmpCfg, callback);
            }
        }
353313
@Deprecated
    public static PredicateTemplate predicateTemplate(String template, ImmutableList<?> args) {
        return predicateTemplate(TemplateFactory.DEFAULT.create(template), args);
    }
965589
public void deleteMetadata(String templateName) {
        String scope = Metadata.scopeBasedOnType(templateName);
        this.deleteMetadata(templateName, scope);
    }
118768
public void delTemplateEntry(String template, Object entry) {
        if (htod.delTemplateEntry(template, entry) == HTODDynacache.DISK_EXCEPTION) {
            stopOnError(this.htod.diskCacheException);
        }
    }
893845
public function deleteTemplateDataAction()
    {
        $translator = $this->getServiceLocator()->get('translator');

    	$eventDatas = array();
    	$this->getEventManager()->trigger('meliscms_template_delete_start', $this, $eventDatas);

        $request = $this->getRequest();
        $templateId = null;
        $status  = false;
        $message = 'no data';
        $textMessage = '';
        $textTitle = 'tr_tool_template_fm_update_title';
        // make sure it's a POST call
        if($request->isPost()) {

            // get the service for Templates Model & Table
            $templatesModel = $this->getServiceLocator()->get('MelisEngineTableTemplate');
            $templateId = (int) $request->getPost('templateId');

            // make sure our ID is not empty
            if(!empty($templateId))
            {
                $templatesModel->deleteById($templateId);
                $status = true;
                $message = $templateId . ' successfully deleted';
                $textMessage = 'tr_tool_template_fm_delete_content';
            }
        }

        $response = array(
           'success' => $status ,
            'textTitle' => $textTitle,
            'textMessage' => $textMessage
        );

        $this->getEventManager()->trigger('meliscms_template_delete_end', $this, array_merge($response, array('typeCode' => 'CMS_TEMPLATE_DELETE', 'itemId' => $templateId)));

        return new JsonModel($response);
    }
674089
@Deprecated
    public static StringTemplate stringTemplate(String template, ImmutableList<?> args) {
        return stringTemplate(createTemplate(template), args);
    }
43407
function(dom_node) {
							var index = get_template_instance_index(getFirstDOMChild(dom_node)),
								instance = index >= 0 ? template_instances[index] : false;

							if(instance) {
								delete template_instances[index];
								instance.destroy();
							}
							return this;
						}
917395
public function delete_template( $params ) {

		$params       = (object) $params;
		$params->type = 'template';

		return $this->delete_object( $params );
	}