<PackageReference Include="Azure.Storage.Files.DataLake" Version="12.23.0" />

Azure.Storage.Files.DataLake.Models.DataLakePathScheduleDeletionOptions

Options for scheduling the deletion of a path.
public DateTimeOffset? ExpiresOn { get; }

The DateTimeOffset to set for when the file will be deleted. If null, the existing ExpiresOn time on the file will be removed, if it exists. Does not apply to directories. ExpiresOn and TimeToExpire cannot both be set.

public TimeSpan? TimeToExpire { get; }

Duration before file should be deleted. Does not apply to directories. TimeToExpire and ExpiresOn cannot both be set.

Constructor. Sets the DateTimeOffset when the path will be deleted.

Constructor. Sets time when the path will be deleted, relative to the current time.