public boolean deleteTracking(Tracking tracking)
            throws AftershipAPIException,IOException,ParseException,JSONException{

        String parametersExtra = "";
        if(tracking.getId()!=null && !(tracking.getId().compareTo("")==0)){
            parametersExtra = tracking.getId();
        }else {
            String paramRequiredFields = tracking.getQueryRequiredFields().replaceFirst("&", "?");
            parametersExtra = tracking.getSlug()+ "/"+tracking.getTrackingNumber()+paramRequiredFields;
        }

        JSONObject response = this.request("DELETE","/trackings/"+parametersExtra,null);
        if (response.getJSONObject("meta").getInt("code")==200)
            return true;
        else
            return false;
    }