Can delete_object Python API be enhanced to recursively delete all objects under the specified path?
lakectl fs rm
command already has this functionality but Python API doesn’t.
09/14/2022, 6:36 AM
Hi @Amit Kesarwani,
Our python client is automatically generated, so it supports only commands supported by the lakeFS API.
lakeFS API doesn’t support recursive delete (same as S3).
You could use delete_objects, but you will still need to provide the list of the objects you want to delete.
This functionality is also not supported in boto3, maybe this thread in stackoverflow could help (it’s for boto3 but the concept is the same).