Deleteall di CakePhp

// Delete all the spam
function destroySpam()
{
    return $this->deleteAll(['is_spam' => true]);
}
Handsome Hippopotamus