You can use a Delete activity to your pipeline.
- Set the Dataset to point to the Blob Storage where the temporary folders are created.
- Use a wildcard or specific path to target the temporary folders for deletion.
https://learn.microsoft.com/en-us/azure/data-factory/delete-activity
Or instead of using Azure Blob Storage as the staging area, you can use Snowflake internal stage.
https://docs.snowflake.com/en/user-guide/data-load-local-file-system-create-stage.html
Or simply, Azure Blob Storage offers lifecycle management policies that can automatically delete blobs or folders after a specified period.
https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview