clear logging

This topic explains the command that clears log messages stored in RAM or in flash memory.

Syntax

clear logging {buffered | file}

Parameter

buffered: Clears the log messages stored in RAM.

file: Clears the log messages stored in the flash memory.

Default

No default value.

Mode

Privileged EXEC

Usage

Use this command to clear the log messages from the internal logging buffer in the RAM or the flash memory.

Example

This example first clears the log messages stored in RAM and then clears the log messages in flash memory:

CODE
Switch# clear logging buffered
Switch# clear logging file