Are there any ways to automatically cleanup temporary files created in s3 by the Amazon Redshift connector

sajith_appukutt
Databricks Employee
Databricks Employee

The Amazon Redshift data source in Databricks seems to be using S3 for storing intermediate results. Are there any ways to automatically cleanup temporary files created in S3

sajith_appukutt
Databricks Employee
Databricks Employee

You could use storage lifecycle policy for the s3 bucket used for storing intermediate results and configure expiration actions. This way temporary/intermediate results would be automatically cleaned up

View solution in original post