fx gc

garbage collect packages on the target (reboots!)

This command is essentially an alias for:
  fx reboot && fx wait && fx shell pkgctl gc
It is a temporary helper until online space management is available.

gc source code