Hey MulongDeng - a useful first thing to note is that /app-storage/global is the app-visible mount for global persistent storage on RVC4, but it shares the same underlying device userdata partition with other oak-agent / overlay data. So if it shows 100% usage, it may be your app’s data, but it can also be stale app/container artifacts or downloads on the device.
Recommended troubleshooting:
On the device / inside the app shell:
df -h /app-storage/global /overlay /data # Check usage of app and shared storage
du -xhd1 /app-storage/global 2>/dev/null | sort -h # Find large directories in global app storage
du -xhd1 /overlay/oak-agent 2>/dev/null | sort -h # Find large oak-agent directories
From the host with oakctl:
oakctl app list # List installed apps
oakctl app prune-storage # Clean stale app files
Common causes are app data such as recordings, snapshots, logs, or caches, but also stale oak-agent downloads, packages, old container layers, or unused installed apps. Typical fixes are deleting unused apps with oakctl app delete <app-id>, running oakctl app prune-storage, adding retention/cleanup for app-created files, and avoiding global storage for large app-specific data unless it really needs to be shared. More on this here.
Thanks,
Oskar