Thoracentesis is a procedure to remove fluid or air from around the lungs. A needle is put through the chest wall into the pleural space. The pleural space is the thin gap between the pleura of the lung and of the inner chest wall. The pleura is a double layer of membranes that surrounds the lungs.