{"version":"2.1.248","anchor":"desktop-released-session-cleanup-path","canonical_anchor":"desktop-released-session-cleanup-path","heading":"Desktop-released session cleanup path","tier":"soon","area":"Sessions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/desktop-released-session-cleanup-path","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Desktop-released session cleanup path\n\nCleanup code reads a setting for how long to keep sessions released from the desktop app.\n\n**What**\n\nCleanup code reads a `desktopSessionCleanupPeriodDays` setting, where 0 disables it, looks for a per-transcript release marker file, and decides between releasing the session for cleanup now or holding it for a grace period based on whether the marker says the session was deleted or archived.\n\n**Details**\n\n- `delete` releases immediately; `archive` waits until the marker file's modification time is past the cutoff.\n- Falls back to a built-in default when the setting is unset.\n- The sweep's telemetry gained a matching counter.\n\n**Evidence**\n\n`var U = \".desktop-released.json\"`\n\n- Area: Sessions\n- Names: `desktopSessionCleanupPeriodDays`\n- Tier: Nothing to try yet\n- Useful: 2\/5\n- Signal: 3\/5\n- Present in the build but not switched on"}