DeleteByField

Navigation:  Development > Function Reference > InformationSet >

DeleteByField

Previous pageReturn to chapter overviewNext page

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

 

Return true or false.

 

For Example:
App::InformationSet('Post')->deleteById(5);
App::InformationSet('Post')->deleteByName('about-us');