// Delete removes the specified key. Set recurse to true to delete recursively
506686
func (e *EtcdStore) Delete(key string, recurse bool) error {
	c, q := context.WithTimeout(context.Background(), e.Timeout)
	defer q()

	o := &client.DeleteOptions{Recursive: recurse}
	return del(e, c, o, key)
}
12551
func (c *InMemoryCache) Delete(_ context.Context, key Key) bool {
	if _, found := c.items.Load(key.String()); found {
		c.items.Delete(key.String())
		return true
	}
	return false
}
604548
func (mem *Memcache) Delete(key string) error {
	return mem.conn.Delete(key)
}
1114978
func (ds *RemoteCache) Delete(key string) error {
	return ds.client.Delete(key)
}
587516
func (m *MemStore) Delete(key string, recurse bool) error {
	if !recurse {
		delete(m.store, key)
		return nil
	}
	for k := range m.store {
		if key == k || strings.HasPrefix(k, key) {
			delete(m.store, k)
		}
	}
	return nil
}
1018399
func (c *Cache) Delete(keys [][]byte) {
	c.DeleteRange(keys, math.MinInt64, math.MaxInt64)
}
978978
func (s *Session) Delete(key string) error {
	s.isDirty = true

	delete(s.data, key)
	return nil
}
344413
func (r *RedisStore) Delete(key string) error {
	return r.client.Del(key).Err()
}
367014
func (tx *Txn) Delete(key string) keyval.BytesTxn {
	if tx.addPrefix != nil {
		key = tx.addPrefix(key)
	}
	tx.ops = append(tx.ops, op{key, nil, true})
	return tx
}
1303479
func (kv *KV) Delete(key []byte) error {
	_, err := kv.db.Exec(
		fmt.Sprintf("DELETE FROM %s WHERE id=?", string(kv.table)),
		kv.id(key),
	)
	return err
}
899324
func (n NamespacedKV) Delete(key string) {
	n.db.Delete(n.prefixedKey(key), nil)
}
896059
func (r *MemoryTTL) Delete(key string) error {
	r.Lock()
	defer r.Unlock()

	r.delete(key)
	return nil
}
20536
func (l *LRUNoTS) Delete(key string) error {
	res, err := l.cache.Get(key)
	if err != nil && err != ErrNotFound {
		return err
	}

	// item already deleted
	if err == ErrNotFound {
		// surpress not found errors
		return nil
	}

	elem := res.(*list.Element)

	return l.removeElem(elem)
}
501242
func (kv *KV) Delete(key []byte) error {
	return kv.db.Erase(gkv.Btos(key))
}
776685
func (m *Map) Delete(key interface{}) {
	if m.m == nil {
		return
	}
	delete(m.m, key)
}
800285
func (c *MemcacheCacher) Delete(key string) error {
	return c.c.Delete(key)
}
417927
func (c *TwoTier) Delete(key string) {
	c.second.Delete(key)
	c.first.Delete(key)
}