Legato not cleaning up unpack directory

I have run update -g and legato is still caching an unsuccessful install in unpack. The disk/flash is too small so I have to reliably clear unused files to make space for update cases.

How can i remove unused files in this directory? Can i delete them without using a legato tool?

root@wp-under-test:~# update -g
**ERROR: The probation period has already ended. Nothing to do.
root@wp-under-test:~#  du -ha /mnt/flash/ | grep "\/mnt\/flash\/legato\/apps\/unpack$"
40.0M   /mnt/flash/legato/apps/unpack

how about install a simple helloworld application and then type “update -g”?

Not a valid path forward. I need to ensure this disk space gets removed always. Otherwise I will have remote devices experiencing disk errors randomly.

Is this always reproducible?
If the above method works, this means you need to type “update -g” within probation period

It is hard to reproduce, as i think the original error occured when the unpack process filled the flash entirely and caused the app command to stop functioning

No idea, as it is hard to reproduce

You can also see if this helps: