FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Property DeleteMode

    DeleteMode

    Gets or sets the mode used when files are deleted through the repository. Default is DeferredUntilClean.

    Declaration
    public DeleteMode DeleteMode { get; set; }
    Property Value
    Type Description
    DeleteMode
    Remarks

    In DeferredUntilClean mode, a delete marker is written when a delete operation completes (or when a transaction containing the deletion commits), and the physical deletion happens later when a FileRepoCleaner clean operation processes markers older than the delete delay specified to CleanAsync(TimeSpan, CancellationToken). This allows concurrent open transactions to access deleted files for a period of time, supports recovery of files that were mistakenly deleted, and allows scheduled file backups to run before files are physically deleted.

    In Immediate mode, files are physically deleted as soon as the delete operation completes (or when a transaction containing the deletion commits). No delete marker is written and no grace period is observed.

    This setting does not affect immediate deletion of files when a file add operation gets rolled back, e.g. when a transaction that added a file is rolled back or the file is deleted within the same transaction that added it.

    © Singulink. All rights reserved.