/** * Delete batch entry. * * @param int $batchId * Batch id. * * @return bool */ public static function deleteBatch($batchId) { // delete entry from batch table $batch = new CRM_Batch_DAO_Batch(); $batch->id = $batchId; $batch->delete(); return TRUE; }