remove(entity) - JPA EntityManager's method

Method
javax.persistence.EntityManager
void remove(
  Object entity
)

Remove the entity instance.
Parameters:
entity - entity instance
Throws:
IllegalArgumentException - if the instance is not an entity or is a detached entity
TransactionRequiredException - if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction
Since:
JPA 1.0