Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Azure ストレージ内の cloudblockblob を削除する関数が必要なプロジェクトに参加しています。私はすでに自分の cloudblockblob を持っていますが、cloudblockblob をすべてのサブディレクトリと blob と共に削除する方法がわかりません。
これは私が試したことです:
blockBlob.DeleteIfExists();
でも効かないと思う…
うーん、修正されました。サブディレクトリ内のすべてのアイテムをループして、サブディレクトリ自体を削除する必要がありました..解決しました! この質問をご覧いただきありがとうございます..
すべてのサブ コンテナーをループして削除できます。これにより、コンテナーである子ではなく、ブロブである子が削除されます。