Delete method is used to delete existing records in a table.
Note: Be careful when deleting records in a table! Notice the WHERE clause in the DELETE statement. The WHERE clause specifies which record(s) should be deleted. If you omit the WHERE clause, all records in the table will be deleted!
Syntax
Delete( x =>
x.From( Table | SubSelect )
.LeftJoin( (Table | SubSelect), Condition )
.RightJoin( (Table | SubSelect), Condition )
.InnerJoin( (Table | SubSelect), Condition )
.Where( Condition )
)
Examples
Regular
With Join
With Chunks