Skip to main content

Retaining Deleted Files

Deleted-file retention controls how long Files.com keeps backup copies after files are deleted or overwritten in native Files.com storage. When retention is enabled, only the most recently deleted or overwritten copy of each file is recoverable within the configured number of days. A retained copy is not visible in the working folder; use Restore Deleted Files and Folders to bring it back.

Retention supports compliance with data protection regulations and internal policies by keeping deleted records available for inspection or recovery. It also gives Site Administrators a way to recover from accidental deletions caused by automation rules, API scripts, or users — including off-boarding cases where an employee deletes files before leaving.

When a file is overwritten, the replacement becomes the active file and its previous contents enter deleted-file retention. The recovery window starts at the overwrite, using the same retention setting as a deletion. To recover it while keeping the replacement, restore to a new folder; an in-place restore preserves the file already at the original path.

Repeated overwrites, or deletions followed by replacement under the same filename in the same folder, do not create a recoverable version history. To preserve successive versions, configure Archive Removed Files. Removed copies move to the archive path instead, where they remain available under the archive's own access and retention rules.

Files on mounted storage follow the remote system's recovery options.

Configuring Retention Settings

Site Administrators set how long the most recently deleted or overwritten copy of each file remains recoverable using the Retain backup copies of files after deletion setting. The value defines the maximum number of days your site will retain these copies before they are permanently removed from storage. The default is 30 days.

Setting the value to 0 removes retained copies immediately after deletion or overwrite and disables your ability to restore them. We do not recommend this configuration. To retain deleted files indefinitely, set the value to 99999.

The setting applies retroactively to retained copies of deleted files and overwritten versions. After you change it, the system can take up to 24 hours to remove any copies that no longer fall within the updated retention window.

The storage used for retaining deleted files counts toward your site's total storage usage.

Choose this recovery window alongside the cleanup and preservation policy for the working files.