<!here> Hello, quick question: I saw there is an o...
# dev
o
<!here> Hello, quick question: I saw there is an option of delete recursive for the lakectl fs rm command. 1. Since which version this support was added? 2. Do we have an option to do it also through the delete object Rest API?
l
Hi @Ori Adijes, This feature was added in version v0.53.0 https://github.com/treeverse/lakeFS/releases/tag/v0.53.0. This is currently unavailable from our API, but we will be happy to know if you have a use case for that.
o
Yes we do. I explained the use case earlier to @Itai Admi. @Daniel Satubi FYI 👆
i
@Ori Adijes Our API consists of both the OpenAPI you sent the link to, and the s3 gateway. The gateway has the
DeleteObjects
operation which allows batch deletes. Any S3 client can be configured to work with lakeFS, you just need to configure the creds and endpoint.
a
@Itai David wrote this in the CLI (https://github.com/treeverse/lakeFS/pull/2529). AFAIK it is indeed a loop over all objects. There is no API-level support for this feature. I do not believe the API should support this, for several reasons: 1. S3 does not have this either. 2. Potentially unbounded execution time means that so no execution strategy is right for all use-cases. 3. Such an API call would have very complex error semantics. No error semantics match all use-cases. To me these are signals that the operation should be decomposed into smaller individual operations, with different clients assembling them differently as required.