$modx->removeCollection( 'vote', array() );
Could not get table name for class: vote
xPDO->removeCollection - Error deleting vote instances using query DELETE FROM
$modx->addPackage( 'vote', $path . 'model/', 'lhm_' );
This question has been answered by BobRay. See the first response.
$modx->removeCollection('vote');$votes = $modx->getCollection('Vote');
if (empty($votes) || count($votes) < 1) {
return 'failed to get votes';
} else {
foreach ($votes as $vote) {
$vote->remove();
}
}