Initial batch deletion code