add prune flag for gc (default disable)