archethic-node
archethic-node copied to clipboard
Remove old releases from node
Describe the problem you discovered
Actually when we install a new release, it compile all the file into the _build/rel/env and build folder. But release after release, theses files are not cleaned. Each release is approximately 100 Mo, so the _build folder continue to increase it's size without utility. Actually the archethic-node and build folder on mainnet node has a size of 1.8Go :
archethic-node@archethic-node-NUC10i5FNK:~/aebot$ du -h -d 1
2,2M ./key_certificates
1,8G ./archethic-node
1,7G ./data
1,7G ./build
8,0K ./stats
5,1G .
Describe the solution you'd like
After installing a new release we should remove the old ones to free some space.
We could use the migrate.ex
script to do this
PS: We should always keep the previous one as it is used to build the release. So we can remove all release before the previous one (current version -2)