After an abdominal resection for colon cancer, Madeline returns to her room with a Jackson-Pratt drain in place. The purpose of the drain is to: