S5720 clean file system

Created: Dec 18, 2018 21:07:08Latest reply: Dec 20, 2018 15:06:42 273 7 0 0
  Rewarded Hi-coins: 0 (problem resolved)

Hi all,

Im looking for help regarding S5720.

After applying multiple patches on it, disk space become low.

As I have quite a few switches, and esigh Id like to know how to clean all these patches centrally as currently Im deleting each patches one by one on each switches.

Is there a way to clean it ?

Thanks !


  • x
  • convention:

Mark.hu  Enthusiast Technician   Created Dec 20, 2018 10:25:25 Helpful(0) Helpful(0)

This post was last edited by Mark.hu at 2018-12-20 10:27. First of all, we do not recommend batch deletion by script, because there are many files inside, we need to confirm whether we need to delete, if the deletion error will lead to unknown problems, the manual deletion is as follows:
1. delete [ /unreserved ] [ /quiet ] { filename | devicename } [ all ]






Deletes a specified file. The deleted file cannot be restored.



2. After deleting, empty the recycle bin to avoid still taking up space.The reset recycle-bin command 
  • x
  • convention:

Mysterious.color  Visitor   Created Dec 18, 2018 23:56:25 Helpful(0) Helpful(0)

you want to make a clean for the whole system including the configuration ?
  • x
  • convention:

find what you love and let it kill you.
ViktorG     Created Dec 19, 2018 14:23:42 Helpful(0) Helpful(0)

Hello Vincent!
To check the files on the flash you can use command DIR in user view.

For deleting useless files use delete flash:/FILENAME.
Also, do not forget after deleting to use reset recycle-bin flash:/FILENAME.

Take care!
  • x
  • convention:

4am  Visitor   Created Dec 19, 2018 17:32:16 Helpful(0) Helpful(0)

You can make a common script and paste the configuration on each.
  • x
  • convention:

vmerilhou     Created Dec 19, 2018 21:31:58 Helpful(0) Helpful(0)


Do you have sample script I could use for my customer ?


  • x
  • convention:

chenhui  Addict   Created Dec 20, 2018 09:24:23 Helpful(0) Helpful(0)

@vmerilhou hello Vincent, first of all, you should find out which files you want to delete, and copy the files' name out, then create a text file to edit the script.
for example: I want to delete file A, B and C, I can edit my script like below
delete /force flash:/A
delete /force flash:/B
delete /force flash:/C
by pasting the script in the router, the router will delete the file A, B and C
by the way, before you delete the files, please be sure the file is useless, it's better to backup before deleting.
  • x
  • convention:

vmerilhou     Created Dec 20, 2018 15:06:42 Helpful(0) Helpful(0)

Thanks all for your answer.

The issue is simple : my customer has more than 100 switches.

On each switches he has deployed patches and applied them.

Now all these patches takes disk space and he wants to clean these patches.

The problem is if you have 100 switches you need to specify for each switches the proper name of the patch to delete it.

What I dont get is when you have 100 switches do you have to look at each of them and check one by one the file names on it? this sounds really painfull no?

Ill go with the Dir to command to list then delete and recycle clean method for each switches,

Thanks for your help !


  • x
  • convention:


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!
Fast reply Scroll to top