How to delete a specific line in a file? June 2, 2022 by IT Nursery Let’s say I have a text file full of nicknames. How can I delete a specific nickname from this file, using Python? 17 Answers 17