code: protected <C extends CrudResponse, T extends DeleteEntity> C handleDeleteEntity(Class<T> type, Integer id) {
          Map<String, String> uriVariables = restUriVariablesFactory.getUriVariablesForEntityDelete(
                  BullhornEntityInfo.getTypesRestEntityName(type), id);
          String url = restUrlFactory.assembleEntityDeleteUrl();
  
          CrudResponse response = null;
  
          try {
  
              if (isSoftDeleteEntity(type)) {
                  String jsonString = "{\"isDeleted\" : true}";
  
                  response = this.performPostRequest(url, jsonString, DeleteResponse.class, uriVariables);
              }
  
              if (isHardDeleteEntity(type)) {
                  response = this.performCustomRequest(url, null, DeleteResponse.class, uriVariables, HttpMethod.DELETE, null);
              }
          } catch (HttpStatusCodeException error) {
              response = restErrorHandler.handleHttpFourAndFiveHundredErrors(new DeleteResponse(), error, id);
          }
  
          return (C) response;
      }
docs: Makes the delete api call. The type of delete (soft or hard) depends on the DeleteEntity type of the Class<T> type passed in.
  
  @param type
  @param id
  @return