question about `delete_objects` in the ObjectsApi:...
# help
u
question about
delete_objects
in the ObjectsApi: https://pydocs.lakefs.io/docs/ObjectsApi.html#delete_objects
u
do the paths you specify in the
pathlist
act as prefixes, so that everything that starts with any of the prefixes in the pathlist, gets deleted? or do you have to explicitly list every object to be deleted?
u
Hello @Verun Rahimtoola. The answer for that should be no. We do not perform server side recursive deletion. We do have a
--recursive
flag in our CLI tool, as documented here: https://docs.lakefs.io/reference/commands.html#lakectl-fs-rm
u
ok, thanks!
u
Anytime :)
u
hi @Itai David when i try to invoke this api, i’m getting an
invalid api endpoint
error
u
other api calls such as listing, branch creation etc are working fine
u
Copy code
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 02 Mar 2022 22:34:49 GMT', 'Content-Type': 'application/json', 'Content-Length': '35', 'Connection': 'keep-alive'})
HTTP response body: {"message":"invalid API endpoint"}
u
our lakefs version is 0.54.0
u
is this api not supported for this version of lakefs?
u
actually it does seem that way
u
the lakefs client i am using 0.59.0 which has that endpoint but our current server version is 0.54.0 which doesn’t have it
u
no worries, not a big deal
u
thanks
u
Hi @Verun Rahimtoola - let me take a look at the code, to verify it is indeed a matter of versions mismatch, and get back to you
u
thanks
u
u
yes
u
Indeed this is a versions mismatch issue. This API was introduced in version 0.57.0 - https://github.com/treeverse/lakeFS/releases/tag/v0.57.0