Hello! Can you guide me what is the best way to d...
# flyte-support
b
Hello! Can you guide me what is the best way to delete old executions (and the data connected to them). As I know flyte doesn't have a method for that, but still I need to release disk space and I would like to delete data which are not useful anymore. I tried to access s3 uri (e.g. s3://flyte/data/9m/fca9028c0ffe64016afa-n3-0-n3-n1-0-n1-0/3f275b36950b20fc8436681ba76437bd/8a664494c61b5de20e002fe0618ab938) when it's available and delete it by boto3 client but it didn't release any disk space. I don't care about inconsistency right now because they are old executions which I don't want to utilize anymore. Can you suggest me the less hacky / the best way to delete these?
a
@bored-needle-72209
flytectl delete execution
does one part of the job but doesn't remove the data. Maybe using an S3 lifecycle policy would make it more declarative
👍 1
b
Thanks for the suggestion,
flytectl delete execution
is not working for already SUCCEEDED, FAILED executions, right?