Ways to flush all data downloaded in memory?

Hi guys,

Is there an easy way to bin all data downloaded in the buffer?

E.g. I’ve downloaded data via the to_csv method

dfSaved = df.to_csv("SearchConsoleForecast.csv")

I’d need a quick way to remove it from the buffer by say pressing a button.

I’m playing with os functions such as:

try:
    os.remove(filename)
except OSError:
    pass

… yet so far things are not working as expected.

Cheers :pray:

Charly

try:
    os.remove(filename)
except OSError:
    pass

is working well, my bad! :slight_smile: