Azure file deletion not working with life cycle management rule

Pothineni, A 6 Reputation points
2023-01-03T02:10:01.733+00:00

Hi, We have a requirement to delete the files after certain days from storage container folders.

I have set a rule to delete them as per below. But looks like this rule is not getting triggered. Please advice.

{
"rules": [
{
"enabled": true,
"name": "test",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"delete": {
"daysAfterModificationGreaterThan": 1
}
}
},
"filters": {
"blobTypes": [
"blockBlob"
],
"prefixMatch": [
"raw / BV/ landing / BV-data-to-Data-Lake-Integration/events",
"raw / BV/ landing / BV-data-to-Data-Lake-Integration/event_",
"raw / BV/ landing / BV-data-to-Data-Lake-Integration/sensors"
]
}
}
}
]
}

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
{count} vote

1 answer

Sort by: Most helpful
  1. Takahito Iwasa 4,851 Reputation points MVP Volunteer Moderator
    2023-01-03T03:25:20.307+00:00

    Hi, @Pothineni, A

    Triggered once a day. Has 24 hours passed since the setting? (up to 48 hours if modifying an existing policy)

    The prefix seems to contain a space.Is this policy correct?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.