diff --git a/src/anemoi/registry/commands/entry.py b/src/anemoi/registry/commands/entry.py index 71aee7f..b57262f 100644 --- a/src/anemoi/registry/commands/entry.py +++ b/src/anemoi/registry/commands/entry.py @@ -200,9 +200,12 @@ def load(self, args): LOG.info(f"Entry in {collection} has been created : {res}.") def remove(self, args): + path = args.path + if not path.startswith("/"): + path = "/" + path rest = Rest() - rest.delete(args.path) - LOG.info(f"{args.path} has been deleted.") + rest.delete(path) + LOG.info(f"{path} has been deleted.") command = Entry