fai tutto con l'sql

select * from tabella where campo_dataora < now() - interval 12 hour

se i record sono quelli giusti fai il delete.