Add deleteAll and delete within loops.