How do you remove an ac compressor from an automobile?

It is illegal to release refrigerant into the atmosphere. I suggest you take this to a professional who has the proper equipment to do this legally and correctly. Recharging the system also requires specialized tools and knowledge.