deleteByField

Navigation:  Development > Function Reference > Model >

deleteByField

Previous pageReturn to chapter overviewNext page

Delete entry filtered by a field value.
 
Format: App::Model(MODEL)->deleteBy[FIELD NAME](VALUE)

 

Return true or false.

 

For Example:
App::Model('Page')->deleteById(5);
App::Model('Page')->deleteByName('about-us');