iblrig.commands.remove_local_sessions
- iblrig.commands.remove_local_sessions(weeks=2, local_path=None, remote_path=None, dry=False, tag='behavior')[source]
Remove local sessions older than N weeks.
- Parameters:
weeks (
int
) – Remove local sessions older than this number of weeks.local_path (
Path
) – Path to local subjects folder, otherwise fetches path from iblrig_settings.yaml file.remote_path (
Path
) – Path to remote subjects folder, otherwise fetches path from iblrig_settings.yaml file.dry (
bool
) – Do not remove local data if True.tag (
str
) – The acquisition PC tag to transfer, e.g. ‘behavior’, ‘video’, ‘ephys’, ‘timeline’, etc.
- Returns:
A list of removed session paths.
- Return type:
list
ofPath