anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: openneuroorg/openneuro
Issue: Allow destructive delete for annexed files in drafts

**Describe the bug**
Both the bulk and individual file `delete` and `update` are not working.  (e.g. ds003701)

**Notes**
Datalad doesn't allow deletion of unexported annexed files, applies which to most annexed files in the draft.  Since  confirmation is required, destructive deletes would be fine.

Changed files:
services/datalad/datalad_service/tasks/files.py

diff --git a/services/datalad/datalad_service/tasks/files.py b/services/datalad/datalad_service/tasks/files.py
index 357accd4e..230aad6aa 100644
--- a/services/datalad/datalad_service/tasks/files.py
+++ b/services/datalad/datalad_service/tasks/files.py
@@ -71,9 +71,8 @@ def get_untracked_files(store, dataset):
 def remove_files(store, dataset, files, name=None, email=None, cookies=None):
     ds = store.get_dataset(dataset)
     with CommitInfo(ds, name, email):
-        for filename in files:
-            ds.remove(filename, check=False)
-            update_head(ds, dataset, cookies)
+        ds.remove(files, check=False)
+        update_head(ds, dataset, cookies)
 
 def remove_annex_object(store, dataset, annex_key):
     """Remove an annex object by its key.
@@ -97,6 +96,5 @@ def remove_recursive(store, dataset, paths, name=None, email=None, cookies=None)
     """Remove a path within a dataset recursively."""
     ds = store.get_dataset(dataset)
     with CommitInfo(ds, name, email):
-        for path in paths: 
-            ds.remove(path, recursive=True, check=False)
-            update_head(ds, dataset, cookies)
+        ds.remove(paths, recursive=True, check=False)
+        update_head(ds, dataset, cookies)