delete in cakephp 2 code example
Example: deleteall in cakephp
// Delete all the spam
function destroySpam()
{
return $this->deleteAll(['is_spam' => true]);
}
// Delete all the spam
function destroySpam()
{
return $this->deleteAll(['is_spam' => true]);
}