A 58-year-old male patient with a bronchopleural fistula underwent endoscopic installation of an occluder at the mouth of the fistula. The fistula was located in the stump of the main bronchus of the right lung after a pulmonectomy in 2019. During medical bronchoscopy, mucopurulent contents were actively received from the mouth of the fistula. To close the fistula, the patient was simultaneously drained of the pleural cavity by Bulau and installed an occluder from an improvised tool designed for cleaning the endoscope's biopsy channel. In dynamics, purulent contents do not come from the mouth of the fistula and the liquid content in the pleural cavity has significantly decreased. The patient with improved General condition was discharged for observation at the place of residence.