How to delete logs on S series switches

For S series switches (except the S1700), logs are stored first in the log buffer. When the number of logs reaches the threshold, they will be stored in the syslogfile or logfile folder of the storage card on the device. Both the log buffer and storage card can be cleared.
1. Delete logs from the log buffer.
- Run the reset logbuffer command in the user view to clear the log buffer.
- Run the reset trapbuffer command in the user view to clear the trap buffer.
2. Clear log files.
- Run the delete command in the user view to delete logs in log files of the storage card. If you want to delete certain information from the logfile folder in the flash card, run the following commands:
- delete flash:/logfile/xxx //Delete a certain log file. xxx is the name of the log file stored in the flash card.
- delete /unreserved flash:/logfile/xxx //Permanently delete a certain log file and it will not be found in the recycle bin, either.
- reset recycle-bin //Clear the recycle bin.

Scroll to top