code: public void delete(Collection collection) {
          pm.currentTransaction().begin();
          pm.deletePersistentAll(collection);
          pm.currentTransaction().commit();
      }
docs: Deletes one or more PersistenceCapable objects.
  @param collection a collection of one or more objects to delete
  @since 1.0.0