$id = 1; // primary key MyTablePeer::doDelete($id);
$ids = array(1, 2, 3); // primary keys MyTablePeer::doDelete($ids);
$criteria = new Criteria(); $criteria->add(MyTablePeer::STATUS, 'inactive'); MyTablePeer::doDelete($criteria);In all these examples, 'MyTablePeer' is the name of the peer class for the table that you want to delete records from. The package library for BasePeer and other similar Propel classes is 'Propel/Runtime'.