Delete a file/directory.

adls_delete(adls, path = NULL, recursive = FALSE)

Arguments

adls

adls S3 object, generated using adls().

path

character, remote path, defined with respect to root-path in adls$base_url. You may find file.path() to be useful to compose the path.

recursive

logical, indicates if operation will act on content in subdirectories

Value

A logical indicating the success of the operation.

See also

WebHDFS documentation for "Delete a File/Directory"

Examples

not_run({ library("AzureOAuth") # create token (assumes Azure native app) token <- oauth_token_azure( tenant_id = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", application_id = "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj", name = "foo" ) # create adls object with base-URL and token adls_example <- adls( base_url = adls_url("bar"), token = token ) # create a directory adls_mkdirs(adls_example, "baz") # delete the newly-created directory adls_delete(adls_example, "baz") })