It is always safe to delete anything in ~/.sage/gap, since it will get autorecreated when Sage is started. I just looked at my ~/.sage/gap on sage.math and it is HUGE:
wstein@sage:~/.sage/gap$ ls -1 |wc -l
90
wstein@sage:~/.sage/gap$ du -sch .
1.3G .
1.3G total
I have stuff in there going back to March 2008.
The code in gap.py that creates the workspace in .sage/gap should also delete all old workspaces. I think 1 week is arbitrary, but is safe since as mentioned above any time length is safe.
Component: performance
Issue created by migration from https://trac.sagemath.org/ticket/4936