1 Rookie
•
5 Posts
0
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.
No Events found!



DELL-Chris H
Moderator
•
9.7K Posts
0
December 26th, 2025 13:00
SiempreII6c80ae,
Some things that you can safely clear up are as follows.
System & Audit logs – View, count, and clear local log buffers.
Tech‑support archives in /var/dump — List, copy off‑box, and delete old tar.gz bundles.
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.
SiempreII6c80ae
1 Rookie
•
5 Posts
0
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?
DELL-Joey C
Moderator
•
4.1K Posts
1
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.