escrimaglia / escrimaglia.o4n_azure_storagefile_test / 1.0.19 / module / o4n_azure_delete_files Delete files in a share Storage File | "added in version" 1.0 of escrimaglia.o4n_azure_storagefile_test" Authors: Ed Scrimagliaescrimaglia.o4n_azure_storagefile_test.o4n_azure_delete_files (1.0.19) — module
Install with ansible-galaxy collection install escrimaglia.o4n_azure_storagefile_test:==1.0.19
collections: - name: escrimaglia.o4n_azure_storagefile_test version: 1.0.19
Connect to Azure Storage file using connection string method
Delete files in share in a Storage File account
Return a list of deleted files
path: description: path, directory, where files must be deleted required: false type: string files: choices: - file* - file*.txt - file*.tx* - file*.* - file.tx* - '*.txt' - file.* - '*.*' - file.txt description: files to deleted from File ShRE required: true type: string share: description: Name of the share to be managed required: true type: string account_name: description: Storage Account Name Provided by Azure Portal required: true type: string connection_string: description: - String that include URL & Token to connect to Azure Storage Account. Provided by Azure Portal - Storage Account -> Access Keys -> Connection String required: true type: string
output: description: List of files deleted returned: allways sample: output: changed: false content: - o4n_azure_list_directories.py - o4n_azure_list_files.py - o4n_azure_list_shares.py failed: false msg: File deleted from Directory </dir1> in share <share-to-test2> type: dict