Add checks to ensure files have been deleted