// deleteConfig removes the config specified by key. func deleteConfig(db *client.DB, configPrefix proto.Key, path string, r *http.Request) error { if len(path) == 0 { return util.Errorf("no path specified for config Delete") } if path == "/" { return util.Errorf("the default configuration cannot be deleted") } configKey := keys.MakeKey(configPrefix, proto.Key(path[1:])) return db.Del(configKey) }