package water.api;

import water.DKV;
import water.Value;

import com.google.gson.JsonObject;

public class Remove extends Request {
  protected final H2OExistingKey _key = new H2OExistingKey(KEY);

  @Override
  protected Response serve() {
    Value v = _key.value();

    try {
      DKV.remove(v._key);
    } catch( Exception e ) {
      return Response.error(e.getMessage());
    }

    JsonObject response = new JsonObject();
    response.addProperty(KEY, _key.toString());
    return Response.redirect(response, StoreView.class, null);
  }
}

@@ -26,17 +26,17 @@
 t water.
-D
+U
 KV;%0Aimpo
@@ -284,9 +284,9 @@
     
-D
+U
 KV.r

Fix bug with Key delete using DKV instead of UKV