Remove a persistent instance from the datastore.

Namespace:  NHibernate
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Sub Delete ( _
	obj As Object _
)
C#
void Delete(
	Object obj
)
Visual C++
void Delete(
	Object^ obj
)
JavaScript
function delete(obj);

Parameters

obj
Type: System..::.Object
The instance to be removed

Remarks

The argument may be an instance associated with the receiving ISession or a transient instance with an identifier associated with existing persistent state.

See Also