10/07/2018

Huawei – Recycle Bin

If you delete a file from a Huawei switch, but the space isn’t freed, you might need to empty the recycle bin…

[S5300]dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName 
    0  -rw-             60  Feb 04 2013 04:00:32   $_patchstate_a
    1  -rw-            996  Oct 01 2008 01:01:58   private-data.txt
    2  -rw-            836  Jul 09 2018 20:45:20   rr.dat
    3  -rw-     15,694,636  Oct 07 2014 18:11:50   s5300si-v200r003c00spc300.cc
    4  -rw-            836  Jul 09 2018 20:45:20   rr.bak
    5  -rw-              4  Feb 04 2013 04:00:50   notilogindex.txt
    6  -rw-          6,808  Feb 04 2013 04:01:12   patchhistory
    7  -rw-          1,268  Jul 05 2018 22:11:32   hostkey
    8  -rw-             36  Oct 01 2008 01:02:30   $_patchstate_reboot
    9  -rw-        738,271  Jan 26 2015 10:46:42   s5300-si-reboot.pat
   10  -rw-            900  Jul 05 2018 22:11:50   serverkey
   11  drw-              -  Jul 09 2018 20:46:18   syslogfile
   12  drw-              -  Jul 09 2018 20:46:20   resetinfo
   13  -rw-          2,164  Jul 09 2018 22:02:12   vrpcfg.zip
   14  drw-              -  Jan 26 2015 13:46:24   user
   15  -rw-            464  May 20 2015 13:12:44   dhcp.tbl
   16  drw-              -  Jan 26 2015 13:48:10   dhcp
   17  -rw-            288  May 20 2015 13:17:56   mff.ini
   18  -rw-          3,684  Mar 03 2015 13:33:16   $_patch_history
   19  -rw-        109,082  Mar 03 2015 13:33:06   s5300si-v200r003sph010.pat

32,593 KB total (4,688 KB free)              <==================================

[S5300]rese
[S5300]reset recycle-bin 
Squeeze flash:/restore_bre406-lan5324-1_20100618094524.cfg?[Y/N]:y
%Cleared file flash:/restore_bre406-lan5324-1_20100618094524.cfg.
Squeeze flash:/ti430680807e460_v200r003_20150126_1059.cfg?[Y/N]:y
%Cleared file flash:/ti430680807e460_v200r003_20150126_1059.cfg.
Squeeze flash:/s5300si-v100r006c00spc800.cc?[Y/N]:y
%Cleared file flash:/s5300si-v100r006c00spc800.cc.
Squeeze flash:/s5300si-v200r003sph009.pat?[Y/N]:y
%Cleared file flash:/s5300si-v200r003sph009.pat.
Squeeze flash:/s5300si-v200r003sph003.pat?[Y/N]:y
%Cleared file flash:/s5300si-v200r003sph003.pat.
[S5300]
[S5300]dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName 
    0  -rw-             60  Feb 04 2013 04:00:32   $_patchstate_a
    1  -rw-            996  Oct 01 2008 01:01:58   private-data.txt
    2  -rw-            836  Jul 09 2018 20:45:20   rr.dat
    3  -rw-     15,694,636  Oct 07 2014 18:11:50   s5300si-v200r003c00spc300.cc
    4  -rw-            836  Jul 09 2018 20:45:20   rr.bak
    5  -rw-              4  Feb 04 2013 04:00:50   notilogindex.txt
    6  -rw-          6,808  Feb 04 2013 04:01:12   patchhistory
    7  -rw-          1,268  Jul 05 2018 22:11:32   hostkey
    8  -rw-             36  Oct 01 2008 01:02:30   $_patchstate_reboot
    9  -rw-        738,271  Jan 26 2015 10:46:42   s5300-si-reboot.pat
   10  -rw-            900  Jul 05 2018 22:11:50   serverkey
   11  drw-              -  Jul 09 2018 20:46:18   syslogfile
   12  drw-              -  Jul 09 2018 20:46:20   resetinfo
   13  -rw-          2,164  Jul 09 2018 22:02:12   vrpcfg.zip
   14  drw-              -  Jan 26 2015 13:46:24   user
   15  -rw-            464  May 20 2015 13:12:44   dhcp.tbl
   16  drw-              -  Jan 26 2015 13:48:10   dhcp
   17  -rw-            288  May 20 2015 13:17:56   mff.ini
   18  -rw-          3,684  Mar 03 2015 13:33:16   $_patch_history
   19  -rw-        109,082  Mar 03 2015 13:33:06   s5300si-v200r003sph010.pat

32,593 KB total (15,969 KB free)             <==================================

[S5300]