Delete

Navigation:  Development > Function Reference > Model >

Delete

Previous pageReturn to chapter overviewNext page

This function delete entry.
 
Format: App::Model(MODEL)->Delete(CONDITION);
 
Return true or false.
 
Important: This function delete all row if we do not pass condition..

 

Example: 
 
// Delete All
App::Model('Page')->Delete();
 
// Delete Single Entry
App::Model('Page')->Delete("id=5");
 
// Delete a batch
App::Model('Page')->Delete("name like '%ABC%'");