Subscribe to DataMgr |
Visit this group |
DataMgr makes deleting a record easy. The syntax here works for hard deletes, but will perform a logical delete instead if you have a field defined for that (see Specials).
In the same way that you pass in a structure to insertRecord/updateRecord/saveRecord, you will pass in the structure to deleteRecord. This structure must include a key for the primary key of the table which holds the record you want to delete. If you have a complex primary key, it must include every key field.
<cfset Application.DataMgr.deleteRecord("employees",Form)>