Deletes records upon insertion