Purge cached repository when needed