code: @Override
    public <T> long deleteObject(String name, T obj) throws CpoException {
      return getCurrentResource().deleteObject( name, obj);
    }
docs: Removes the Object from the datasource. The assumption is that the object exists in the datasource. This method
  stores the object in the datasource
  <p>
  <pre>Example:
  <code>
  <p>
  class SomeObject so = new SomeObject();
  class CpoAdapter cpo = null;
  <p>
  try {
  cpo = new JdbcCpoAdapter(new JdbcDataSourceInfo(driver, url, user, password,1,1,false));
  } catch (CpoException ce) {
  // Handle the error
  cpo = null;
  }
  <p>
  if (cpo!=null) {
  so.setId(1);
  so.setName("SomeName");
  try{
  cpo.deleteObject("DeleteById",so);
  } catch (CpoException ce) {
  // Handle the error
  }
  }
  </code>
  </pre>
  
  @param name The String name of the DELETE Function Group that will be used to create the object in the datasource.
  null signifies that the default rules will be used.
  @param obj  This is an object that has been defined within the metadata of the datasource. If the class is not
  defined an exception will be thrown. If the object does not exist in the datasource an exception will be thrown.
  @return The number of objects deleted from the datasource
  @throws CpoException Thrown if there are errors accessing the datasource