Syntax to create store proc to delete huge receords
I need to create a store procedure with a loop that takes two parameter numOfRowsToDelete and delayTime so that store proc delete the that numOfrows and wait for the delayTime and run again. How do I do it. I am new to database. Please help me