Old snapshots are deleted by the distribution cleanup agent. SQL Distribution Cleanup job automatically purges the Snapshot folder of all snapshot files older than 72 hours (default).
If you need to keep the Snapshot files longer, increase the @max_distretention in the Distribution clean up: distribution
cleanup job.
EXEC dbo.sp_MSdistribution_cleanup @min_distretention = 0, @max_distretention = 72
Make sure the distribution cleanup job is running successfully. Make sure SQL Server agent has full rights on the snapshot folder.
Best regards,
Cosmog Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".