question

EdEdwards-4774 avatar image
0 Votes"
EdEdwards-4774 asked SumanthMarigowda-MSFT edited

Does documentation exist for deleting blobs by metadata

I've gone in many circles, and I believe I need a Data Factory to run this for me, but even then, I am finding only partial matches to what I need.

My data is assigned to containers for each "customer", so data belonging to Customer A goes into the "CustomerA" container, and so on. Not all data placed in the container has the same time to live...some files should be deleted after 6 years, where others should be deleted after 10 years. Some may have other deletion dates.

Each file has a metadata tag of "expiry_date". What I need to do is delete the blob if the expiry_date < current time.

This has to be performed on all containers.

Is there any existing documentation on the best way to accomplish this?

azure-blob-storageazure-automation
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ededwards-4774,

Thanks for reaching out. I don't think ADF is suitable for the requirement as we cannot read the tags. I am looping in Storage experts to further assist on this ask.

1 Vote 1 ·

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered SumanthMarigowda-MSFT edited

Hi @EdEdwards-4774 ,

maybe this helps?
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-lifecycle-management-concepts?tabs=azure-portal


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Andreas,

It appears to be close to what I need, but the filtering option appears to only include == at this time (not sure why it is a drop-down with only 1 option).

This appears to be the same issue I am finding everywhere...I can filter by == but not by a > or < comparison.

0 Votes 0 ·