Navigation: Development > Function Reference > Model >
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');