I ran the below command to delete the csv files inside folder2 but it was deleted folder1 and folder2 as well. please help me what went wrong here?
Note: I have used service principal (SPN) authentication to connect to the storage account
AzCopy rm https://[account].blob.core.windows.net/[container]/folder1/folder2/ --include-pattern="*.csv" --recursive=true
Ex:
AzCopy rm https://[account].blob.core.windows.net/internal/data/folder1/ --include-pattern="*.csv" --recursive=true
Expected result: inside folder1
there are 2 files (abc.csv
and xyz.csv
) should get deleted and folder structure should remain available.