<PackageReference Include="Azure.Storage.Blobs" Version="12.25.1" />

BlobRetentionPolicy

the retention policy which determines how long the associated data should persist.
public int? Days { get; set; }

Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.

public bool Enabled { get; set; }

Indicates whether a retention policy is enabled for the storage service.

Creates a new BlobRetentionPolicy instance.