Skip to content

[CI test] expire images - #1

Closed
eddiekk wants to merge 1 commit into
masterfrom
expire-images
Closed

eddiekk wants to merge 1 commit into
masterfrom
expire-images

Conversation

@eddiekk

@eddiekk eddiekk commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Fork-internal PR to run the MSBuild check before opening upstream.

Images (CF_DIB, CF_DIBV5, PNG) are by far the largest items in the
database. With a long retention time the database can grow to many GB,
mostly from old screenshots.

New advanced option "Delete images (CF_DIB, PNG) from clips not used in
x days (0 = never)", default 0 (disabled). When set, RemoveOldEntries
removes the image formats from clips whose lastPasteDate is older than
the set number of days. Other formats of the clip (text, html, rtf) are
kept; clips that only contained image data are deleted. Clips with
shortcuts, in groups, sticky or set to never auto delete are skipped,
the same rules as the existing expire option.

Like the MainDeletes cleanup, this only runs when the computer has been
idle and processes MainDeletesDeleteCount clips per run so deleting the
large blobs doesn't lock the db.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eddiekk

eddiekk commented Oct 14, 2026

Copy link
Copy Markdown
Owner Author

CI passed, opening upstream.

@eddiekk eddiekk closed this Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant