Thoracentesis or pleural tapping:

Thoracentesis is a procedure in which a needle removes excess fluid from the pleural space around the lungs. It is done for both diagnostic and therapeutic purposes.