The tests in tests/testthat/cleanup_temp.R should probably fully delete all the files it creates in the temp directory.
This can be achieved by adding a call to gs_cleanup_temp(gs_untouched) at the end
I discovered this while running the tests by hand as part of studying them to understand how these functions worked since I was running out of disk during a long running data-intensive session involving flowWorkspace.