title: When making Delete Jquery Ajax request, the respnonse code is 200 , but the data is not getting deleted. What could be the possible reason for this
body: <p>I am trying to make a DELETE request but it doesn't work. My code is as follows: </p>
  
  <pre><code>$.ajax({
      type : "DELETE",
      url : "/meds/dme-rest-api/resources/data-setup/deleteCheckList.json?" + $.param({"checkListId":currentCheckListId}),
  
      headers : {authToken : '${TOKEN}'},
      cache : false,
      success : function(data){
                   console.log(data);
              }
      });
  </code></pre>
  
  <p>The response which I get is : {"errorMessage":"","success":true}
  But the data is not getting deleted. What is the reason behind this ?
  Please let me know if I should some extra information. </p>
  
  <p><strong>Update</strong> The API is as follows: </p>
  
  <pre><code>@DELETE
  @Path("deleteCheckList.json")
  @Produces(MediaType.APPLICATION_JSON)
  public Response deleteCheckList(@HeaderParam(value = RestHttpHeaderNames.AUTH_TOKEN) String authToken,
          @FormParam(value = "checkListId") int iCheckListId) throws Exception, SQLException {
  
      User user = UserManagement.getInstance().get(authToken);
      String sCompanyNo = user.getCompanyNo();
      int iEmployeeNo = user.getEmployeeNo();
  
      return RestUtils.getNoCacheResponseBuilder(Response.Status.OK).entity(
              DataSetupManager.newInstance().deleteCheckList(sCompanyNo, iEmployeeNo, iCheckListId).toString())
              .build();
  }
  </code></pre>