SAP Ariba interview question

write an algorithm to delete 1 million records from DB in a very efficient way.