added logic to remove repo after completion