1 Rookie

 • 

5 Posts

51

December 26th, 2025 08:01

Clean up files with Dell Enterprise SONIC

Hi Dell team,

I'm looking for a standard or recommended way to clean up files on switches with Dell Enterprise SONIC after a period of continuous operation.

Does the OS have any command to support this request, or at least some kind of file cleanup procedure ?

Looking forward to the feedback.

Moderator

 • 

9.7K Posts

December 26th, 2025 13:00

SiempreII6c80ae,

 

Some things that you can safely clear up are as follows. 

  1. System & Audit logs – View, count, and clear local log buffers.

    • show logging — view system logs.
    • show logging count — see how many entries exist.
    • clear logging — clears system logs and audit logs 
  2. Tech‑support archives in /var/dump — List, copy off‑box, and delete old tar.gz bundles.

    • dir tech-support:/ — list files in /var/dump.
    • copy tech-support://<filename> scp://… — export to an external server.
    • delete tech-support:/ <filename> — remove old bundles to free flash space.

 

Also a standard cleanup procedure would be 

 


Assess log volume

DELLSONiC# show logging
DELLSONiC# show logging count

 


Clear local logs (system + audit)

DELLSONiC# clear logging


Review tech‑support archives and remove old ones

DELLSONiC# dir tech-support:/
DELLSONiC# delete tech-support:/ <old_bundle.tar.gz>


Optionally export before deleting

DELLSONiC# copy tech-support://<bundle.tar.gz> scp://user@server/path/

 

Let me know if this helps.

 

1 Rookie

 • 

5 Posts

December 27th, 2025 14:52

Thank @DELL-Chris H ​ 

clear logging — clears system logs and audit logs. 

I noticed the command only deletes the most recent uncompressed syslog files.

There are many older compressed syslog files that I think should also be deleted by that command.

With upcoming versions, I wonder if Dell SONIC will improve the file cleanup process?

Moderator

 • 

4.1K Posts

December 28th, 2025 23:25

Hi,

 

I don't see any update notes for the upcoming release yet. It's probably might be in the minor adjustments. Let us know if the coming update would help to clear the logs. 

No Events found!

Top