Okay, let's make one thing clear first. Are you using MODX Evolution or Revolution?
You're using Revo syntax (addPackage, getCollection) and also $modx->db which is Evo..
If you're trying to delete whatever is passed in a GET request, do realize that's asking for trouble
Now, I'll assume you're on Revo and set up your package properly..
<?php
$path = MODX_CORE_PATH . 'components/pto/';
$result = $modx->addPackage('pto',$path . 'model/','pto_');
$id= $_GET['rowcheckbox'];
// I assume that the rowcheckbox post is a SINGLE ID and not an array.. if so, you'll need to wrap this in a for each or something.
// Get the object we want to delete
$obj = $modx->getObject('Tracker',$id);
// Check if we actually retrieved an object to prevent fatal errors
$success = true;
if ($obj instanceof Tracker) {
// if it's the right object, remove it. Will return true or false
$success = $obj->remove();
}
return $success;