Is it possible to natively set a life cycle policy to delete files not accessed since X-days? If not, is there a possible to use the blob API for that?
PS: I don't mind whether to use v2 data lake or regular blob storage
Is it possible to natively set a life cycle policy to delete files not accessed since X-days? If not, is there a possible to use the blob API for that?
PS: I don't mind whether to use v2 data lake or regular blob storage
Copyright © 2021 Jogjafile Inc.
Yes, this is possible.
Have a look at the
daysAfterLastAccessTimeGreaterThanAction run condition. Please be advised that if last access time tracking is not enabled,daysAfterLastAccessTimeGreaterThanuses the date the lifecycle policy was enabled instead of theLastAccessTimeproperty of the blob. This date is also used when theLastAccessTimeproperty is anullvalue.For more information, see Optimize costs by automatically managing the data lifecycle - Move data based on last accessed time.