From aeaa49d76ac3393c12719198cab9e5a678e47b7f Mon Sep 17 00:00:00 2001
From: mancini <mancini@astron.nl>
Date: Thu, 10 Nov 2022 16:39:46 +0100
Subject: [PATCH] Fix using wrong method to delete files

---
 atdb/prune.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/atdb/prune.py b/atdb/prune.py
index 547de7d..fa2e15a 100644
--- a/atdb/prune.py
+++ b/atdb/prune.py
@@ -54,7 +54,7 @@ def remove_surl_locations(surls: List[str], dry_run=False) -> None:
 
             logger.debug("removing surl %s", surl)
             logger.debug("file stats are: %s", context.stat(surl))
-            context.release(surl)
+            context.unlink(surl)
         else:
             logger.info("[dry-run] removing surl %s", surl)
             logger.info("file stats are: %s", context.stat(surl))
-- 
GitLab