• What code did you run?

    What I find is that tempdb is hard, because there's usually a load in it. I'd shrink files, not the database, and shrink it in stages. Do not try to shrink it all at once.

    Also does this stay mostly free? I'd track this over time. If it bursts back up, you're better off leaving it larger. Not to say this needs to be 171GB, but if it gets to 80GB usage, I'd leave it at 88-100.