From 895b8e35ab14e7bfca8a6611a84af0cfde883304 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Thu, 20 Nov 2025 17:15:40 +0100 Subject: [PATCH] add drop function for datalad project --- corrlib/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/corrlib/main.py b/corrlib/main.py index defe03a..460ed8b 100644 --- a/corrlib/main.py +++ b/corrlib/main.py @@ -134,3 +134,11 @@ def import_project(path: str, url: str, owner: Union[str, None]=None, tags: Unio # make this more concrete return uuid + + +def drop_project_data(path: str, uuid: str, path_in_project: str = ""): + """ + Drop (parts of) a prject to free up diskspace + """ + dl.drop(path + "/projects/" + uuid + "/" + path_in_project) +