Added delete_all statements to rebuild task