Clean trash

Created: Jun 18, 2019 01:14:51Latest reply: Jun 18, 2019 23:45:40 148 4 0 0
  Rewarded Hi-coins: 0 (problem resolved)

Good afternoon people, I updated the IOS and Patch of my huawei 5720 switch, except that I forgot to use the / unreserved switch after the delete command, a result of which the files are still in the flash, question, which command do I use to empty the trash from my switch and with this delete this files permanently?


  • x
  • convention:

Featured Answers
Admin Created Jun 18, 2019 08:47:11 Helpful(1) Helpful(1)

Hi,valterjrsam:
You can run the reset recycle-bin[ filename | devicename ] command to permanently deletes files from the recycle bin
  • You can run the dir /all command to display all files that are moved to the recycle bin from the current directory, and file names are displayed in square brackets ([ ]).
  • If you delete a specified storage device, all files in the root directory of the storage device are deleted.
  • If you run the reset recycle-bin command directly, all files that are moved to the recycle bin from the current directory are permanently deleted.
  • x
  • convention:

All Answers
Popeye_Wang Admin Created Jun 18, 2019 08:47:11 Helpful(1) Helpful(1)

Hi,valterjrsam:
You can run the reset recycle-bin[ filename | devicename ] command to permanently deletes files from the recycle bin
  • You can run the dir /all command to display all files that are moved to the recycle bin from the current directory, and file names are displayed in square brackets ([ ]).
  • If you delete a specified storage device, all files in the root directory of the storage device are deleted.
  • If you run the reset recycle-bin command directly, all files that are moved to the recycle bin from the current directory are permanently deleted.
  • x
  • convention:

yogijain MVE Created Jun 18, 2019 09:09:27 Helpful(0) Helpful(0)

reset recycle-bin

Sometimes users engineers, not familiar with Huawei devices, complain that there is not enough space in flash to upload a new software by FTP. The reason of it is that files from flash haven’t been deleted permanently from the memory. They use “delete name of file” command to delete files. Actually this command causes that deleted file is moved to recycle bin and “dir” command does not display it in flash, but it still occupies memory of flash. To display all files stored in flash you should use “dir /all” command.

<labnario>dir
Directory of flash:/
1  -rw-     12017319  Jan 19 2012 17:30:51   labnario.bin
2  -rw-     12017553  Aug 12 2008 18:02:39   ar28-vrp340-r0201p20.bin
3  -rw-         9018  Dec 05 2011 16:22:11   config.cfg

31877 KB total ( 7843 KB free)

Look what will happen if we use “delete labnario.bin” command:

<a>delete labnario.bin
Delete flash:/labnario.bin?[Y/N]:y
...
delete file flash:/labnario.bin...Done.

As you can see below, even the file has been deleted, it is still occupying memory of flash:

<a>dir
Directory of flash:/
1  -rw-  12017553  Aug 12 2008 18:02:39   ar28-vrp340-r0201p20.bin
2  -rw-      9018  Dec 05 2011 16:22:11   config.cfg

31877 KB total ( 7843 KB free)

<labnario>dir /all
Directory of flash:/
1  -rw-  12017553  Aug 12 2008 18:02:39   ar28-vrp340-r0201p20.bin
2  -rw-      9018  Dec 05 2011 16:22:11   config.cfg
3  -rw-  12017319  Jan 19 2012 17:30:51   [labnario.bin]

 31877 KB total ( 7843 KB free)

Below two ways how to delete this file permanently:

reset recycle-bin
<a>reset recycle-bin
Clear flash:/~/labnario.bin ?[Y/N]:y
Clearing files from flash may take a long time. Please wait...
.......
%Cleared file flash:/~/labnario.bin.
delete /unreserved …
<a>delete /unreserved labnario.bin
The contents cannot be restored!!! Delete flash:/labnario.bin?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
.....
delete file flash:/labnario.bin...Done.

And now what the result is:

<a>dir /all
Directory of flash:/
1  -rw-  12017553  Aug 12 2008 18:02:39   ar28-vrp340-r0201p20.bin
2  -rw-      9018  Dec 05 2011 16:22:11   config.cfg

31877 KB total ( 19860 KB free)

The file has been deleted successfully 

  • x
  • convention:

Yogendra%20Jain
valterjrsam Created Jun 18, 2019 21:51:28 Helpful(0) Helpful(0)

Thank you yogijain and Popeye_Wang for the help, problem solved.
  • x
  • convention:

yogijain MVE Created Jun 18, 2019 23:45:40 Helpful(0) Helpful(0)

Thanka Valterjrsam for confirmation.
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top