Perhaps you have already had the problem that you have deleted a file from the flash of a Huawei device, but the free storage space has not changed. Here we describe how you can permanently delete files in two different ways.
Over time, some files can accumulate in the flash, which are no longer used but continue to take up space. It can therefore happen that the flash no longer has any free space and old files have to be deleted. You have two options for permanently deleting the files.
Reset recycle-bin
In the following example, only 8 MB are free in the flash memory of this switch. You can use the command dir
to check the free space at the bottom:
Now we want to delete the file s5720li-v200r011sph005_bak.cc, which is almost 70 MB in size. This can be done with the delete flash:/s5720li-v200r011sph005_bak.cc
command:
After deleting, however, we see that there are still only 8 MB free in the memory. The file has therefore not been permanently deleted, but only moved to the recycle bin. With dir /all
, all files are visible, also the files in the recycle (marked with [] brackets):
You can empty the recycle bin with the command reset recycle-bin
:
The storage space has now been released and sufficient storage space is available again.
Force deletion of file
If you want to delete the file directly without moving it to the recycle bin first, you can do this with the delete /unreserved s5720li-v200r011sph005_bak.cc
command: