delete_records function

Delete records