I'm writing to log file using the following code:
import logging
from gmplot import gmplot
logging.basicConfig(filename="sample.log", level=logging.INFO)
logging.debug("This is a debug message")
logging.info("Informational message")
logging.error("An error has happened!")
But then it's impossible to delete this file. how can I 'release' this file?