select nodes whose created date in hours is equal or larger than 48 hours
Even quicker (and more efficient):

$sql = 'SELECT n.nid, n.title, n.created FROM {node} n WHERE (UNIX_TIMESTAMP(CURRENT_TIMESTAMP()) -n.created)/3600 &gt;= 72');
node_delete_multiple(db_query($sql)-&gt;fetchCol());