public boolean deletJob(Job job) throws ClientProtocolException,
			IOException, JSONException {
		HttpPost post = new HttpPost(GCP_BASE_URL + "/" + GCP_CMD_DELETE_JOB);
		addGcpHeaders(post);

		List<NameValuePair> nvps = new ArrayList<NameValuePair>();
		nvps.add(new BasicNameValuePair("jobid", job.getId()));
		nvps.add(new BasicNameValuePair("output", "json"));

		post.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));

		HttpResponse response = httpclient.execute(post);
		int code = response.getStatusLine().getStatusCode();

		String responseStr = EntityUtils.toString(response.getEntity());

		if (code == HttpStatus.SC_OK) {
			JSONObject json = new JSONObject(responseStr);
			if (json.has("message")) {
				lastResponse.setMessage(json.getString("message"));
			}

			if (json.getBoolean("success")) {
				lastResponse.setSuccess(true);
				return true;
			} else {
				lastResponse.setSuccess(false);
				return false;
			}
		} else {
			lastResponse.setSuccess(false);
			lastResponse.setMessage("HTTP result code: " + code);
			return false;
		}
	}