Delete files permanently on Huawei devices

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:

Huawei output of command dir

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:

Huawei output of command delete

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):

Huawei output of command dir /all

You can empty the recycle bin with the command reset recycle-bin:

Huawei output of 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:

Huawei output of command delete /unreserved

Loading comment... The comment will be refreshed after 00:00.
Write comments...
You are a guest ( Sign Up ? )
or post as a guest

Newsletter