Whatever message this page gives is out now! Go check it out!

EntityDelete

Last update:
May 18, 2026

Description

Deletes the record from the database for the specified entity. Depending on the cascade attribute specified in the mapping, it deletes the associated objects also.

Category

Function Syntax

EntityDelete(entity)

See Also

History

ColdFusion 9: Added this function.

Parameters

Parameter
Description
entity
Name of the entity being deleted.

Example

<cfset employee = EntityLoad('employee', 100, true)> 
 <cfset EntityDelete(employee)> 
 <cfset employee = CreateObject('component', 'employee')> 
 <cfset employee.setEmployeeID(100)> 
 <cfset EntityDelete(employee)>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page