//this rule should be executed last , right before we are going to delete the
//row from the collection

if (count($errors) == 0 && count($ruleErrors) == 0)
{

include_once $_SERVER['DOCUMENT_ROOT'].'/classes/class.storage.php';
$storage = new StorageAPI($this);

$storage->setUserID($UserID);
$storage->setAdmin($SuperAdminUser);

$storage->deleteFileById($DeleteID);


}//end if delete file