code: func (db *memDB) Delete(c *Container) error {
  	return db.withTxn(func(txn *memdb.Txn) error {
  		view := &memdbView{txn: txn}
  		names := view.getNames(c.ID)
  
  		for _, name := range names {
  			txn.Delete(memdbNamesTable, nameAssociation{name: name})
  		}
  
  		// Ignore error - the container may not actually exist in the
  		// db, but we still need to clean up associated names.
  		txn.Delete(memdbContainersTable, NewBaseContainer(c.ID, c.Root))
  		return nil
  	})
  }
docs: // Delete removes an item by ID