Pages::drop()

Version 2019.1

Drop all data from selected pages

Removes pages permanently from database. Does not trigger any onSave code, just drops data in main table and data attached to them (changelog, cache etc.)

Example

Drop data for all Cancelled Orders from database:

$this->get('pages','order')->addWhere('status','cancelled')->drop();