Automating Data Lake Cleanup: Delete Old Files Using Get Metadata, ForEach, and If Condition in Azure Data Factory
Build an automated cleanup pipeline in ADF that scans ADLS Gen2 folders, checks file ages using Get Metadata, and deletes files older than your retention period using If Condition and Delete activities.