Removes a previously installed template.

 @param [String] name
   The name of the template to remove.
341743
def remove(name)
      name = File.basename(name)
      path = File.join(Config::TEMPLATES_DIR,name)

      unless File.exists?(path)
        say "Unknown template: #{name}", :red
        exit -1
      end

      FileUtils.rm_rf(path)
    end
1057195
def delete_host_template(self, name):
    
    return host_templates.delete_host_template(self._get_resource_root(), name, self.name)
746465
def delete(name)
      name = normalize_header name.to_s
      @pile.delete_if { |k, _| k == name }
    end
97972
def remove_context(self, name):
        
        context = self.get_context(name)
        contexts = self.get_contexts()
        contexts.remove(context)
360022
public function removeToolbarItem($name) {
        if(!isset($this->toolbarItems[$name])) {
            unset($this->toolbarItems[$this->getRouteName() . '.' . $name]);
        }

        unset($this->toolbarItems[$name]);
    }
332765
def remove_from_index(name, key)
      index(name).delete(key)
      index(:"#{name}_to_s").delete(key.to_s)
      index(:"#{name}_to_sym").delete(:"#{key}") if to_sym?(key)
    end
27448
public function removeMetaTag($name)
    {
        if(isset($this->metaList[$name])) {
            unset($this->metaList[$name]);
        }
        return $this;
    }
1177722
public function removeResource($name)
    {
        $yaml = $this->getContent();
        if (isset($yaml[$name])) {
            unset($yaml[$name]);
            $this->setContent($yaml);
        }
    }
100098
def clear(self, name):
        
        self._lock.acquire()
        try:
            del self._cache[name]
        finally:
            self._lock.release()
216434
def remove_remote(name)
      remote = @remotes[name]
      raise UndefinedRemoteError.new(name) if remote.nil?
      remote.remove
      @remotes[name] = nil
    end
320676
def clear_header(self, name: str) -> None:
        
        if name in self._headers:
            del self._headers[name]
1023627
public void removeName(String name)
   {
      indexes.remove(name);
      names.remove(name);
      dirty = true;
   }
732350
public void unlink(Name name) {
    DirectoryEntry entry = remove(checkNotReserved(name, "unlink"));
    entry.file().unlinked();
  }
197065
def remove_context(self, name):
        
        self._context(name)
        del self.contexts[name]
        self._flush_tools()
714734
public static function clear($name): void
    {
        if (static::$immutable) {
            return;
        }

        if (\function_exists('\\putenv')) {
            \putenv($name);
        }

        unset($_ENV[$name], $_SERVER[$name]);
    }
905494
public function remove($name = null)
    {
        $plugins = $this->_list($name);

        foreach ($plugins as $plugin => $config) {
            $this->out();
            $this->out('For plugin: ' . $plugin);
            $this->hr();

            $this->_remove($config);
        }

        $this->out();
        $this->out('Done');
    }
878320
def index_template_absent(name):
    '''
    
    '''

    ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''}

    try:
        index_template = __salt__['elasticsearch.index_template_get'](name=name)
        if index_template and name in index_template:
            if __opts__['test']:
                ret['comment'] = 'Index template {0} will be removed'.format(name)
                ret['changes']['old'] = index_template[name]
                ret['result'] = None
            else:
                ret['result'] = __salt__['elasticsearch.index_template_delete'](name=name)
                if ret['result']:
                    ret['comment'] = 'Successfully removed index template {0}'.format(name)
                    ret['changes']['old'] = index_template[name]
                else:
                    ret['comment'] = 'Failed to remove index template {0} for unknown reasons'.format(name)
        else:
            ret['comment'] = 'Index template {0} is already absent'.format(name)
    except Exception as err:
        ret['result'] = False
        ret['comment'] = six.text_type(err)

    return ret