Visitar URL original
feat(storage): add delete_folder_recursive sample by nidhiii-27 · Pull Request #6905 · googleapis/google-cloud-rust · GitHub
Skip to content

feat(storage): add delete_folder_recursive sample - #6905

Draft
nidhiii-27 wants to merge 2 commits into
mainfrom
feat/add-rust-delete-folder-recursive
Draft

nidhiii-27 wants to merge 2 commits into
mainfrom
feat/add-rust-delete-folder-recursive

Conversation

@nidhiii-27

Copy link
Copy Markdown

Add the storage_control_delete_folder_recursive sample demonstrating recursive folder deletion in Hierarchical Namespace (HNS) buckets using StorageControl::delete_folder_recursive.

Fixes b/521168740

[Generated-by: AI]

Add the storage_control_delete_folder_recursive sample demonstrating recursive folder deletion in Hierarchical Namespace (HNS) buckets using StorageControl::delete_folder_recursive. Fixes b/521168740

[Generated-by: AI]
@product-auto-label product-auto-label Bot added api: storage Issues related to the Cloud Storage API. samples Issues that are directly related to samples. labels Sep 21, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new example demonstrating how to recursively delete a folder using the Google Cloud Storage Control client. It introduces the delete_folder_recursive module, which triggers the recursive deletion and polls the long-running operation until completion. The example is integrated into the run_managed_folder_examples function in lib.rs, where a nested folder hierarchy is created and then deleted. There are no review comments, and I have no feedback to provide.

@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.12%. Comparing base (ae1886e) to head (5880999).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6905      +/-   ##
==========================================
- Coverage   97.19%   97.12%   -0.07%     
==========================================
  Files         326      326              
  Lines      110017   110017              
==========================================
- Hits       106927   106855      -72     
- Misses       3090     3162      +72     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…test

Gracefully skip verification and clean up child and parent folders sequentially when the test project's bucket does not have recursive folder deletion enabled (`INVALID_ARGUMENT: Recursive folder delete is not enabled for this bucket.`).

[Generated-by: AI]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated api: storage Issues related to the Cloud Storage API. samples Issues that are directly related to samples. storage-sample-architect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant