# fx gc | |
garbage collect packages on the target (reboots!) | |
```none | |
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](https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/devshell/contrib/gc) |