c# - Automatically delete Blob files in Azure based on a future date -


i curious see if there way automatically delete blob file in future in microsoft azure setting future date or time? when set time elapse, blob file automatically deleted. using c# asp.net.

a blob never going delete itself. contradict consistency , reliability of azure if objects started deleting themselves.

the simplest thing can think of set webjob monitor storage account , remove blobs specified number of days old. or if store metadata blob in app database have webjob database , delete blob deletedate today.

webjobs can, if you're site isn't under real pressure, deployed existing webapp process @ no additional cost. if expect either webapp or webjob particularly busy consider separating them don't compete resources.

there's great blog post here tells need know started webjobs.

it's worth noting webjob can run continuously, on demand, on defined schedule , in response message queues or file being dropped in blob storage.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -