package water.api;

import water.UKV;
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 {
      UKV.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);
  }
}

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);
  }
}

--- 
+++ 
@@ -1,6 +1,6 @@
 package water.api;
 
-import water.DKV;
+import water.UKV;
 import water.Value;
 
 import com.google.gson.JsonObject;
@@ -13,7 +13,7 @@
     Value v = _key.value();
 
     try {
-      DKV.remove(v._key);
+      UKV.remove(v._key);
     } catch( Exception e ) {
       return Response.error(e.getMessage());
     }
Fix bug with Key delete using DKV instead of UKV

Would leave behind all the internal chunks and only remove the hex array head
