To clean up files, you use CLI commands to delete the backup software image, rotate log files, and remove other unnecessary files.
When you upgrade software on the router, it creates a backup image of the software that was previously installed. To create enough space on a 256-MB compact flash for an upgrade, use the request system software delete backup command to delete this image. In addition, use the request system storage cleanup command to rotate log files and delete unnecessary files.
![]() |
Note: To review the list of files that can be deleted without actually deleting files, you can use the request system storage cleanup dry-run command. |
To delete the backup software image, rotate log files, and delete unneeded files:
The router rotates log files and displays the files that you can delete.
Replace filename with the name of the file or directory to delete.