我正在为 Python 3.8 使用 azure-storage-file-datalake 插件。SDK 在这里进行了深入的描述 - https://docs.microsoft.com/en-us/python/api/azure-storage-file-datalake/azure.storage.filedatalake.datalakedirectoryclient?view=azure-python,但是在哪里没有关于是否可以从数据湖中删除文件的描述,SDK 只描述了删除目录。是否可以删除文件?
编辑:为了回应给出的答案,我尝试了这个......
file = DataLakeFileClient.from_connection_string(
my_connection_string,
file_system_name=filesystem,
file_path=path
)
file.delete_file()
但最后一行导致此错误
TypeError('element indices must be integers')