ideascoffeediyhow to ideascoffeediy for It depends in what manner the compressor failed.
If the clutch bearing on the compressor failed, then it’s just a matter of replacing the compressor and then drawing a vacuum on the system and rechaging the system.
If however the compressor failed internally then it’s a little more complicated. When a compressor fails internally, the burnt oil and metal debris contaminates the entire system. This is called black death. This means the entire AC system must be disassembled so the hoses, condenser, and evaporator can flushed to remove this debris. And in some cases the condenser can’t be flushed but must be replaced. The accumulator/drier and expansion valve must be replaced as these are contaminated with the debris.
Then each component has oil added to them before reassembly. For example you add two ounces to the condenser, and one ounce to the evaporator and hose assembly. Then the system is reassembled, a vacuum is pulled on the system to remove the moisture/air, and the system is recharged.