Permanently deleting files or releasing storage space (of the flash or SD card) on the firewall

11

The method of permanently deleting files from the firewall to release the storage space is as follows:

1. Run the reset recycle-bin[ filename ] command to permanently delete a file in the Recycle Bin. If you do not specify the file name, all files in the Recycle Bin are deleted.
2. Run the delete/unreserved + file name command to directly and permanently delete a file.

Other related questions:
How to clear the recycle bin of an S series switch
For S series switches (except S1700 switches), run the following command to clear the recycle bin:
<HUAWEI> reset recycle-bin
Note: The delete XXX command in the user view only moves files to the recycle bin, but does not release the storage space. You can run the dir/all command to view information about all files, including deleted files in the recycle bin marked in brackets ([ ]). These files can be restored using the undelete command. To permanently delete these files from the recycle bin, run the reset recycle-bin command. The files that are deleted using the delete command without the /unreserved parameter are saved in the recycle bin.

Delete files
Run the delete [ /unreserved ] [ /quiet ] { filename | devicename } [ all ] command to delete a specified file from the storage medium. # Remove a file to the recycle bin. The occupied storage space is not released. delete test.txt Info: Are you sure to delete flash:/test.txt? [Y/N]: y # Delete a file permanently and release the occupied storage space. The file cannot be restored after being deleted. Exercise caution when deciding to delete it. delete /unreserved test.txt Warning: The file flash:/test.txt cannot be recycled. Continue? [Y/N]: y# Delete a file permanently without the need of any confirmation and release the occupied storage space. The file cannot be restored after being deleted. Exercise caution when deciding to delete it. delete /unreserved /quiet test.txt Info: Unreserved deleting file flash:/test.txt...Done.

How to release the storage space
Run the reset recycle-bin, delete /unreserved, or rmdir command to delete outdated and unnecessary files to release the storage space. NOTICE: Exercise caution when you run these commands because files cannot be restored after being deleted. Run the reset recycle-bin command in the recycle bin to empty the recycle bin to release the storage space. reset recycle-bin Squeeze flash:/sheader.txt?[Y/N]:y %Cleared file flash:/sheader.txt. Squeeze flash:/123.txt?[Y/N]:y %Cleared file flash:/123.txt. After you run this command, the device displays a message each time before it deletes a file or a directory, asking whether you want to delete it. You can select Y or N to confirm the deletion. Before clearing the recycle bin, you can run the dir /all command to view information about all the files and directories in the storage medium, including files in the recycle bin. Files in the recycle bin are marked by [ ]. Run the delete /unreserved command on the storage medium to delete unnecessary files permanently to release the storage space. delete /unreserved flash:/test/test.txt Warning: The contents of file flash:/test/test.txt cannot be recycled. Continue? [Y/N]:y Info: Deleting file flash:/test/test.txt...succeeded. After you run this command, directories are not deleted. Run the rmdir command on the storage medium to delete unnecessary directories permanently to release the storage space. rmdir test Remove directory flash:/test?[Y/N]:y %Removing directory flash:/test...Done!

How to release the storage space of an S series switch
For S series switches (except S1700 switches), you can run the reset recycle-bin, delete /unreserved, or rmdir command to delete outdated and unnecessary files to release the storage space. Note: Exercise caution when you run these commands because files cannot be restored after being deleted. 1. Run the reset recycle-bin command in the recycle bin to clear the recycle bin to release the storage space. reset recycle-bin //After this command is executed, the switch displays a message each time before it deletes a file or directory asking whether you want to delete it. You can select Y or N to confirm the deletion. Before clearing the recycle bin, you can run the dir /all command to view information about all files and directories in the storage medium, including those moved to the recycle bin. Files in the recycle bin are marked by brackets ([ ]). 2. Run the delete /unreserved command to delete outdated and unnecessary files permanently to release the storage space. delete /unreserved flash:/test/test.txt 3. Run the rmdir command to delete outdated and unnecessary directories permanently to release the storage space. rmdir test //Select Y as prompted to delete the directories.

Which file system do AR series routers support for USB flash drives and SD cards
The AR series routers support only the FAT32 file system for USB flash drives and SD cards.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top