here\'s my function that creates file on the fly(when the user clicks proper link)
@app.route(\'/survey//report\') def survey_downloadreport
I've used os.unlink for a while with success:
import os os.unlink(os.path.join('/path/files/csv/', '%s' % file))
Hope it helps.