eta.util.file.clear

clear(fname, in_module=False)[source]

Clear the contents of a file.

Parameters:
  • fname (str) –

  • in_module (bool, default=False) –