cleanup#

syncopy.cleanup(older_than=24, interactive=True, only_current_session=False)[source]#

Delete old files in temporary Syncopy folder

The location of the temporary folder is stored in syncopy.__storage__.

Parameters:
  • older_than (int) – Files older than older_than hours will be removed

  • interactive (bool) – Set to False to remove all (sessions and dangling files) at once without a prompt asking for confirmation

  • only_current_session (bool) – Set to True to only remove dangling files associated to this Syncopy instance

Examples

>>> spy.cleanup()