The refrigerant has to come out first
If the old system is central air or an older mini split, whoever pulls it has to recover the refrigerant from the lines before anything gets disconnected. It isn't something that gets vented into the air. That's a step in the job, not an extra one, and it happens before the old line set or outdoor unit gets hauled off.







