Purged Repository to latest safe commit