Open
Description
Is your feature request related to a problem? Please describe.
If you remove a tenant, its Media files are only removed if they use the default local storage in App_Data. When using Azure Blob Storage though, they remain.
Similar to #16404.
Related: #4950.
Describe the solution you'd like
Add an IShellRemovingHandler
to OrchardCore.Media.Azure
that removes Media files from Azure Blob Storage too. This should support both removing the whole container if tenants' Media are stored in separate containers, or just the "folder" if a single container is used.
Describe alternatives you've considered
You can also have a custom IShellRemovingHandler
implementation for this, but I think this should be a core functionality.