added existance check around some of the file deletions that are throwing errors for the CI