add drop function for datalad project

This commit is contained in:
Justus Kuhlmann 2025-11-20 17:15:40 +01:00
commit 895b8e35ab
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -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)