codice:
	$array = array();
	$query = 'select * from articoli order by data desc limit 15';
	$res = mysql_query($query);
	$i=1;
	while($row = mysql_fetch_assoc($res))
	{
		$array[] = $row; # Vedi tu cosa farci con questi dati
		if($i == 15)
			$lastid = $row['id'];
		$i++;
	}
	$query = 'delete from articoli where id < '. $lastid;
	mysql_query($query);
Giusto una cosa veloce, per non starci a pensare troppo su e darti una risposta. Prova un po'...