Mungkin Anda bisa mencoba sesuatu seperti ini :
DELETE FROM mytable
WHERE id NOT IN (SELECT id FROM mytable ORDER by date DESC LIMIT 100)
Mungkin Anda bisa mencoba sesuatu seperti ini :
DELETE FROM mytable
WHERE id NOT IN (SELECT id FROM mytable ORDER by date DESC LIMIT 100)