Check for repository link before trying to delete it