*`DELETE /puppet-admin-api/v1/environment-cache` i...
# puppet
c
DELETE /puppet-admin-api/v1/environment-cache
is the right API call to clear the cache after a deploy. But... it may actually not be needed with symlinks. Because there isn't a re-use of cache keys.
The sweeper that cleans up old copies should probably call it with
environment=<deleted copy>
after removing an older version.