Modified delete to receive JSONObject